Questions tagged [conditional-breakpoint]

In software development, a conditional breakpoint is an intentional stopping or pausing place in a program, put in place for debugging purposes, when a conditions such as the reading, writing, or modification of a specific location in an area of memory, occurs.

In software development, a is an intentional stopping or pausing place in a program, put in place for debugging purposes. It is also sometimes simply referred to as a pause.

The most common form of a breakpoint is the one where the program's execution is interrupted right before a programmer-specified is executed. This is often referred to as an instruction breakpoint.

Other kinds of can also be used, such as the reading, writing, or modification of a specific location in an area of memory. This is often referred to as a conditional breakpoint, a data breakpoint, or a .

Breakpoints can also be used to execution at a particular time, upon a keystroke, etc.

Source:http://en.wikipedia.org/wiki/Breakpoint

155 questions
1
vote
0 answers

Conditional breakpoint error: Attempting to pass a lambda to a delegate C# in VS 2019, alternative

I read that this was a product error and it seems to be coming back again and again. I could tick the option to "Use managed compatibility mode", however if I do so, I can't use linq in the Immediate windows, which I need. Editing the code in the…
user33276346
  • 1,501
  • 1
  • 19
  • 38
1
vote
1 answer

Create new column with condition by repeat values and when have break points

My data is about 40 animals (ids) with locations by telemetry, and I have already stipulated 3 areas. The first one is AR, where is breeding area, AM migration, and AA is feeding area. The first locations of all animals is at AR. But sometimes the…
1
vote
2 answers

Conditional breakpoints on string in gdb debugger

Trying to set a conditional breakpoint to stop at a specific value of a string. Following set of commands I have tried: Set 1: (gdb) b file.C:97 if strcmp(pName, "abc") == 0 set 2: (gdb) b file.C:97 (gdb) cond 1 !strcmp(pName, "abc") set 3: (gdb)…
Foobar-naut
  • 111
  • 3
  • 11
1
vote
1 answer

Conditional Breakpoints in Visual Studio Code JAVA

I've looked around the Stackoverflow and few youtube videos but no one seems to know how to set up conditional breakpoints in VS Code JAVA environment. The task should be simple: compare String to some "string" and break if true. Please write…
Kresimir Plese
  • 3,497
  • 1
  • 20
  • 15
1
vote
4 answers

Looking for something void

I'm looking for a command/line that does literally nothing, is as short and simple as possible, but allows me to place a breakpoint on it. (in Eclipse) What I've tried: System.out.println(""); //Too long, also it prints an empty line boolean b =…
d0n.key
  • 1,318
  • 2
  • 18
  • 39
1
vote
1 answer

Ignore some locations in Windbg Conditional breakpoints

I'm trying to set a conditional hardware breakpoint on Windows Kernel-Mode in Windbg by using the following syntax : ba w1 ffff802312345678 "j(@rip==ffff802387654321 || @rip==ffff802387654330) 'gc';''" I used the above command in order to ignore…
Migo Lopak
  • 29
  • 6
1
vote
0 answers

How to create different conditional breakpoints for method entry and exit in eclipse?

I would like to use conditional breakpoints at the entry and exit of the same method, but with different conditions in eclipse. But eclipse only offers to create one such breakpoint per method. I already tried exporting the breakpoint for method…
SpaceTrucker
  • 13,377
  • 6
  • 60
  • 99
1
vote
1 answer

Windows 7 /Eclipse watchpoint on file access

Is there a way in Eclipse [Helios] on Win 7 to watch for a file to be opened? Do I have to know where the app is going to do so, or is there a way to watch for a java.io object being created/something or other? tia Rene
1
vote
1 answer

Xcode breakpoints: break on string compare

I can do conditional breaks in Xcode using string compare? something like: theLabel.text.range(of:"4") != nil
S'rCat
  • 468
  • 1
  • 4
  • 16
1
vote
1 answer

Breakpoints that conditionally break when a pointer to a base class points to a specific subclass

Is there any proper way to set a conditional breakpoint in Visual Studio 2015 such that it breaks whenever a pointer to a base class points to a specified subclass type? (see example screenshot below) I don't want to have to spend time writing debug…
1
vote
1 answer

Visual Studio 2015 breakpoint condition for two dimensional vector size

I have a two dimensional vector at which I want to break if the height does not equal the width. I thought of a condition like this my_vector.size() != my_vector[0].size() but when I tried this I got the error "This expression has side effects and…
user6717637
1
vote
1 answer

Visual Studio 2013 Conditional Breakpoint fails to evaluate

Visual Studio 2013 conditional breakpoint fails to evaluate. The condition for a breakpoint failed to execute. .... Evaluation of native methods in this content is not supported. Yet the Quick Watch will evaluate just fine. Is there a way around…
pixel
  • 9,653
  • 16
  • 82
  • 149
1
vote
1 answer

Why can't you have a lambda in a conditional breakpoint in Visual Studio 2013?

Say I have the following method: public List> DoSomething () { List> result; //Do some things return result; //Would like to breakpoint here } I try to have a conditional breakpoint such as: result.Any(i => i.Any(j…
Adam Modlin
  • 2,994
  • 2
  • 22
  • 39
1
vote
2 answers

Conditional Breakpoints in Visual Studio 2012

In a relatively large VB.NET application, I have the following code. The code sits within a for loop that runs for every given service object. I want a conditional break point that will only activate when objService.VehLastMile is Nothing. So I…
J86
  • 14,345
  • 47
  • 130
  • 228
1
vote
0 answers

Eclipse complex breakpoints. Passing information from one breakpoint to another

While using conditional breakpoints in Eclipse, is it possible for one condition code to leave some value in some global variable for the next breakpoint to look at? Example: File a.java 118 . . . 119 120 String msg = null; 121 122 if( a == 2 )…
ilomambo
  • 8,290
  • 12
  • 57
  • 106