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
16
votes
4 answers

Can I set a conditional breakpoint in base class method which triggers only if it's an instance of specific derived class?

Let's say I have some base class A and two derived classes B and C. Class A has some method called f(). Is there a way to set a conditional breakpoint in A::f() in visual studio which will be hit only when my 'this' is actually an instance of class…
Serge
  • 7,706
  • 5
  • 40
  • 46
15
votes
3 answers

Do any R IDEs support conditional breakpoints?

Which, if any, R IDEs (e.g. StatET, Revolution R, RStudio, ESS, NppToR, others) support conditional breakpoints? This is available via bp in the debug package, or via an additional bit of code that invokes browser() based on a condition. However,…
Iterator
  • 20,250
  • 12
  • 75
  • 111
15
votes
3 answers

Setting Memory Breakpoints in Eclipse

How do you set memory breakpoints in Eclipse? That is, I would like to set a conditional breakpoint that triggers when the data at a given memory location changes. This question has been asked before, but the only provided answer doesn't address…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
13
votes
3 answers

GDB Break if frame is in backtrace

I want to set a condition on a gdb breakpoint to only break if a certain function name appears in the backtrace. What's the best way to do this?
Chazz
  • 461
  • 3
  • 9
12
votes
2 answers

Visual studio breakpoint conditional on the stack state

Visual studio can print call stack when breakpoint hit, and can stop when conditions are met, is there any way to combine that and stop when function is called from another selected one, and ignore all other calls?
Vasaka
  • 1,953
  • 1
  • 19
  • 30
12
votes
1 answer

VS2017 Conditional Breakpoints - "Evaluation of native methods in this context is not supported"

I am debugging a Service Fabric application and need to use a conditional breakpoint based on the value of the id of an object. So I placed a conditional breakpoint to the effect of c.id == "43rregfjlh32"; However, when the breakpoint is hit by…
11
votes
3 answers

Eclipse / conditional breakpoint results in BreakpointException

I want to debug a static inner class, which is actually a Callable. Whenever I try to set a conditional breakpoint in Eclipse I get the breakpoint error: The type com.sun.source.tree.Tree$Kind cannot be resolved. It is indirectly referenced from…
Johannes
  • 2,021
  • 2
  • 23
  • 40
10
votes
1 answer

How can I change the location of a breakpoint in Visual Studio 2017

I've been looking over the internet to find out how to change the location of a breakpoint in Visual Studio 2017 and cannot find any answers. The only answer that comes close is from 2009 and is no longer an option in VS2017. Most attempts to answer…
10
votes
1 answer

Put breakpoint on named function

Is there a way to put a breakpoint on any function in Visual Studio, sort of like bm kernel32!LoadLib* in WinDbg? I know one way is to break at application start, find the required DLL load address, then add offset to required function you can get…
Coder
  • 3,695
  • 7
  • 27
  • 42
10
votes
1 answer

Setting memory breakpoint in Visual Studio 2012

I need to set breakpoint that watches a specific address in memory (e.g. 0x0483d7cc) that is hit when the content changes. I am using Visual Studio 2012 and C++. How can I do that?
9
votes
1 answer

How can I move a conditional breakpoint in Eclipse?

I've set a conditional breakpoint on the wrong line. I would like to move it up one line. Is that even possible? I know that I can always copy paste the condition into a new breakpoint at the correct line, but just drag &drop would be more…
Timo
  • 2,212
  • 2
  • 25
  • 46
8
votes
1 answer

unable to compile conditional breakpoint missing java project context

This is a typical java maven project. The run time instance and source code are exactly the same version. I run into the same error "unable to compile conditional breakpoint missing java project context" by trying on the latest Eclipse(2020-03…
meiju meiju
  • 81
  • 1
  • 2
8
votes
2 answers

IntelliJ Idea how can I set an audio notification when a breakpoint is reached?

With the IntelliJ Idea, when setting a breakpoint that doesn't hit frequently (or not at all), I leave my computer. I'll return ~every 10 minutes to check if the breakpoint has been reached. This process would make use of my time more efficient if I…
dbconfession
  • 1,147
  • 2
  • 23
  • 36
7
votes
1 answer

use one breakpoint's hit count for another breakpoint's condition

I'm using Visual Studio 2008 on C# code. I would like to only break on a breakpoint if another breakpoint has been hit (and broken upon.) Is there a way of doing that? I would imagine as a subproblem it would be nice to get access to the…
user420667
  • 6,552
  • 15
  • 51
  • 83
7
votes
5 answers

Why does Conditional breakpoint decrease the application execution speed at debug time?

When I use conditional breakpoint in VS2005 instead of using temporary code to check specific conditions, I noticed it takes more time and the execution speed is decreased!! Do you know why? and how to resolve this issue? Exmaple: int sequence =…
Ahmed
  • 7,148
  • 12
  • 57
  • 96
1
2
3
10 11