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

Visual Studio 2015 when a "When Hit" breakpoint hit, run profiler

How do you get the Visual Studio 2015 profiler to run when a breakpoint is hit? I only need to profile one small section of code. The link below suggests that this can be done with the "when hit" breakpoints but does not give any details as to what…
Fractal
  • 1,748
  • 5
  • 26
  • 46
0
votes
1 answer

Eclipse conditional breakpoint templates?

After more years than I care to remember using Eclipse I've only just come across conditional breakpoints. They've already been very useful, but it's occurred to me that you may end up writing the same conditions over and over again. Is there any…
ewanc
  • 1,284
  • 1
  • 12
  • 23
0
votes
1 answer

How to set conditional breakpoint based on return value of a function using VS 2010

anyone has any ideas about how to set a conditional breakpoint based on the return value of a function? For example, set the condition as below: wcscmp(this->traceName(), L"site") == 0 But this does not work in my Visual Studio 2010. Anyone can…
sky
  • 522
  • 8
  • 13
0
votes
1 answer

Breakpoints (linked to a condition) in Xcode

I have read that it is possible to set a conditional breakpoint at some specific line in the code, by setting the breakpoint as usual and then set the condition. That is fine, but what I need now is different. I want my program to stop when a given…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

VisualStudio 2012 update 4 c# endless loop / debugger hang

What are the reproducible known states, conditions, or requests that cause the VisualStudio Debugger to "spin endlessly" or hang? (Reworded because original question below was put on hold - Please consider decision to place question on hold because…
0
votes
1 answer

Conditional Breakpoint, EBP contains string pointer

I need to use a conditional breakpoint to find the location when EBP-44 contains the pointer to a specific string. I tried using ollydbg, but because EBP-44 is mostly 0 (or other unreadable memory) the Run Trace fails with Run trace: invalid…
JINX
  • 43
  • 6
0
votes
1 answer

Set breakpoint on specific value of watched variable

I'm sure I have seen the answer to this on here before but I can't find it. How do I, using code, set a breakpoint on a specific variable getting a specific value? This is not what I'm looking for, there is a way to do it in code too. In case it is…
LJNielsenDk
  • 1,414
  • 1
  • 16
  • 32
0
votes
1 answer

Conditional breakpoint in VS

Can I have a conditional breakpoint in visual studio? For example, I want the run to break in case a boolean value is changed to true. Can I do it? If so, how? Thanks
0
votes
0 answers

Is there a way to organize breakpoints hierarchically on eclipse?

There are some configuration or plugin to able the creation of "breakpoint paths"? Exemple: If there are some piece of code "B" and "C" that runs many times in your project, but it are just interesting for your debug process if another piece of code…
Arthur Julião
  • 849
  • 1
  • 14
  • 29
0
votes
5 answers

Visual Studio - Runtime impact of conditional and disabled breakpoints

After spending a little time wondering why my app was running a particular scenario very slowly with the debugger attached, I discovered that this was due to having a conditional breakpoint (whose condition was never being met). This seems…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
0
votes
1 answer

breakpoint in template for specific template parameter

What if i want to set breakpoint into constructor with condition if I == 10? template < typename T, int I > class C { public: C() { cout << I << endl; } };
Yola
  • 18,496
  • 11
  • 65
  • 106
0
votes
2 answers

Is it possible to link conditional breakpoints and scrapbook in Eclipse?

Is it possible to link conditional breakpoints and scrapbook in Eclipse? I would like to have a conditional breakpoint trigger a piece of scrapbook code to be run (automatically). Something like... if(x==4) //Conditional Breakpoint ->Run Scrapbook…
0
votes
2 answers

Why would the value of a variable change after hitting a breakpoint?

I'm trying to debug a unit test that fails about 30% of the time. It seems to be some kind of timing issue, because unfortunately, it never fails when I have a breakpoint in the code. So, I set a conditional breakpoint at the problematic assertion…
Eric
  • 5,842
  • 7
  • 42
  • 71
0
votes
0 answers

visual studio breaking point condition: trigger break when something returns false. Is it possible

I have a function body that contains many other functions calls that may in some moment of time returns false. It is very boring to place each breakpoint at the row, because the points are so many every time. It's about Visual Studio 2008. Is there…
0
votes
3 answers

debugging pthreads with gdb

I'm trying to debug a very infrequent deadlock and I've narrowed it down to a problem with a pthread_mutex, which is of type 1 (recursive). I want to track down where this mutex is coming from and since all of our code uses normal mutexes, I thought…
gremto
  • 228
  • 2
  • 7
1 2 3
10
11