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
4
votes
1 answer

Java/Eclipse - Conditional breakpoint and counter?

Is it possible to have a condition on a breakpoint in Eclipse, and have the breakpoint "activate" after that condition has been met n times? Say for example, in some sloppy mobile-written pseduocode, the breakpoint's condition is: int n = 0; If(i ==…
Kal
  • 43
  • 5
4
votes
1 answer

Eclipse conditional breakpoint compilation error "==" invalid AssignmentOperator

So if I got it right, you're supposed to use a boolean expression for the condition. Yet when I try to use impact == null I get the following error: Conditional breakpoint has compilation error(s). Reason: Syntax error on token "==", invalid…
Sunspawn
  • 817
  • 1
  • 12
  • 27
4
votes
1 answer

Is it possible to use a symbolic breakpoint (or similar) with a dynamic property setter?

At some point in the app, a property in my object is getting set to a strange value. Normally, I would debug something like this by setting a symbolic breakpoint similar to this: This way, when someone tries to set the property to the value I'm…
Logan
  • 52,262
  • 20
  • 99
  • 128
4
votes
1 answer

How to set conditional breakpoint on return statement globally?

I have a code full of functions like: bool f_i() { if (!f_0()) { return false; } if (!f_1()) { return false; } // ... if (!f_n()) { return false; } return true; } // etc... On some step of…
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
4
votes
3 answers

Breakpoint on first entry to recursive function

Is it possible to create a breakpoint where the condition is that its the start of the recursive process? In other words, the stack should only have one call to the function. IE consider this workflow: Main func -> call recursive func -> hit…
4
votes
1 answer

Conditional breakpoint in lldb according to value in memory?

What is the syntax for setting a conditional breakpoint in lldb according to a value in memory? Something like: breakpoint modify -c "memory read -Gx $esp+4 == 0" Alternatively, I guess I could set a breakpoint command to continue if the condition…
Danra
  • 9,546
  • 5
  • 59
  • 117
4
votes
5 answers

Watch a memory location/install 'data breakpoint' from code?

We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem happens only in release mode. when in debug, all is well. that is a classic…
Lior
  • 40,466
  • 12
  • 38
  • 40
4
votes
3 answers

Eclipse Conditional-Breakpoint. How to check if exception occurs?

I have this function: public static FradId readFradId(DataInput pIn) throws IOException { Integer lMainId = Integer.valueOf(pIn.readInt()); Integer lReferenceId = Integer.valueOf(pIn.readInt()); String lShortname = pIn.readUTF(); …
nano_nano
  • 12,351
  • 8
  • 55
  • 83
3
votes
1 answer

In which language should I code conditional breakpoints in gdb?

I'm very confused about conditional breakpoints in gdb. Recently, I wanted to put a breakpoint which breaks when a specific variable is equal to "foo" in a C++ program. To do that I typed this in the gdb CLI : break LINE_NUMBER if strcmp(myVar,…
Tesla123
  • 319
  • 1
  • 7
3
votes
1 answer

Conditional breakpoint that tests multiple stack variables

I'm debugging an application at a point where it uses a dialog box to get some information from the user, and then does some processing on that information. By setting a breakpoint on USER32!CreateDialogParamW I have found the address of its dialog…
Jehjoa
  • 551
  • 8
  • 23
3
votes
3 answers

Can conditional breakpoints be set while debugging in SSMS?

I've just begun using breakpoints to debug a T-SQL stored procedure in Management Studio (SQL Server 2008). I notice that the breakpoints window has a condition column: But I can't find any way to actually specify a condition on a breakpoint, not…
Dan J
  • 16,319
  • 7
  • 50
  • 82
3
votes
1 answer

How to set up conditional breakpoints in spyder?

it was supposed to be incredibly simple to find answer in open internet but apparently not. How do you set conditional breakpoints in spyder (anaconda)? for example here is a fraction of the code: if elem.name == "p": for b_elem in…
Stas003
  • 31
  • 4
3
votes
1 answer

Windbg conditional breakpoints ignore condition itself

I'm debugging an app without sources, i use IDA PRO + Windbg as the debugger. I'm trting to catch calls to CloseHandle with the specific handle value, for example handle=0x14 I put a conditional breakpoint like so: bp kernel32!CloseHandle "j…
3
votes
4 answers

How to use Condition in Delphi Breakpoint properties

I found that a nested loop fails when some particular condition is reached, somehow when I = 1, J = 3 and k = 5 I tried to right click on the breakpoint and in the condition I set (I = 1) and (J = 3) AND (K = 5) anyway the breakpoint doesn't…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
3
votes
1 answer

Conditional breakpoint on type name in VisualStudio

I'm trying to add conditional breakpoint in VS2015 inside C# method. Method signature is: Core(Type type, object value, bool noAutoCreate) The conditional expression for breakpoint is type.Name.Contains("ltern") but this condition doesn't work and i…