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

Error when using conditional breakpoint with instanceof.Is it me or eclipse?

My condition for break : event instanceof org.geomajas.gwt.client.widget.event.SearchEvent I have tried other variations like event instanceof SearchEvent / with parantheses and with/out ";" The error : Evaluations must contain either an expression…
osh
  • 1,191
  • 4
  • 13
  • 21
6
votes
2 answers

There is any quick way to, while debuging, to stop at a specific Windows Message or API?

So I want to put a Breakpoint in a specific API or Windows message. I don't find any easy way to do that without writing code in any Delphi version. Is there a way to do that similar as I can put a breakpoint in memory access?
EMBarbosa
  • 1,473
  • 1
  • 22
  • 76
6
votes
0 answers

Are Swift conditional breakpoints broken in Xcode 8.2?

I just tried to create a conditional breakpoint in the XCODE GUI by clicking to add a breakpoint, then editing it and entering an expression in the Condition field. However, the breakpoint always triggers. I finally distilled it down to entering…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
6
votes
1 answer

gdb disable breakpoint in particular thread

Is it possible to disable gdb breakpoints on a per-thread basis? I have a breakpoint which triggers every 100 milliseconds in the background worker thread. But I need to debug the same location in any other threads. So it would be cool to disable…
igor.sol
  • 627
  • 7
  • 18
6
votes
3 answers

How to put a breakpoint at the end of a function in windbg, so that I dont need to edit it even if some lines have been added/deleted in the source?

I need to log some data when some functions are hit, both at the start of execution and and the end of it. While i have no problem with putting breakpoints at the start of the functions(using bu [module]!functionname, I dont know how to put a…
TCSGrad
  • 11,898
  • 14
  • 49
  • 70
6
votes
1 answer

Condition breakpoint on higher stack frames

In the MSVC++ debugger, is it possible to create a breakpoint in one function, whose condition depends on local variables from other stack frames? I often find myself creating a conditional breakpoint in one function, and when that breakpoint hits,…
Sneftel
  • 40,271
  • 12
  • 71
  • 104
6
votes
1 answer

Eclipse ADT cannot set conditional breakpoint on SDK sources: missing java Project context

I am trying to debug a simple Android app with Eclipse 3.7.1. I attachted the Android SDK sources so I can step through the code of the SDK also. I can set unconditional breakpoints on code of the SDK but not conditional breakpoints. I get the…
jhunovis
  • 698
  • 2
  • 10
  • 22
5
votes
1 answer

How to print something to the console on breakpoint?

I'm wondering if there is any option to print something to console on breakpoint. I had an idea to hack conditional breakpoints feature in IntelliJ IDEA. I wrote such a class: public class BreakpointPrinter { public static boolean print(Object…
5
votes
0 answers

"Condition for a breakpoint failed to execute… 'variable' not declared. It may be inaccessible…" Why?

Related questions: Unable to debug managed code using visual studio 2013 ("Cannot evaluate expression" error - am using debug build) (Note that VS 2012 works) VS2013 Debugger + Entity Framework: "runtime has refused to evaluate the expression",…
5
votes
2 answers

How to set conditional breakpoin based on parameter value using windbg

I want to set a conditional breakpoint based on a member of one parameter, Now I can use command dt to check this parameter, My code looks like this: void test(const MyClassB &inst, int value) { } Now I can use the dt command to view the first…
sky
  • 522
  • 8
  • 13
5
votes
2 answers

GDB, break condition, check NULL pointer

I want to set a break point, and only stop at it, when one pointer called rc is NULL. I did like that b task.c:190 if rc==NULL but gdb says, NULL would be unrecognized, so I changed to b task.c:190 if(!rc) which seems worked. But I am…
arslan
  • 2,034
  • 7
  • 34
  • 61
5
votes
2 answers

Adding conditional breakpoint in NodeJS debugger

The node.js help command outputs the following: debug> help Commands: run (r), cont (c), next (n), step (s), out (o), backtrace (bt), setBreakpoint (sb), clearBreakpoint (cb), watch, unwatch, watchers, repl, restart, kill, list, scripts,…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
4
votes
0 answers

How to set a conditional breakpoint in Rust in GDB for string equality

Seems like a basic question, but I couldn't find anything. How do I set a conditional breakpoint in Rust in GDB, for string equality? I have the function: fn find_max_subst(subst_word: &String, other_word: &String) -> u64 { I would like to break on…
simonzack
  • 19,729
  • 13
  • 73
  • 118
4
votes
1 answer

GDB - strcmp not working: __strcmp_sse2_unaligned

I'm unable to create conditional breakpoint in GDB using strcmp: break x if strcmp(str.c_str(), "foo") == 0 Why you ask? Because: print strcmp("hello", "hello") Yield's (int (*)(const char *, const char *)) 0x7ffff76ffe70 <__strcmp_sse2_unaligned>…
Master Wo
  • 215
  • 2
  • 7
4
votes
2 answers

How to set conditional breakpoint in anonymous inner class depending on final local variable?

suppose I have the following class and want to set a conditional breakpoint on arg==null at the marked location. This won't work in eclipse and gives the error "conditional breakpoint has compilation error(s). Reason: arg cannot be resolved to a…
Axel
  • 13,939
  • 5
  • 50
  • 79
1 2
3
10 11