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
2
votes
2 answers

Conditional Breakpoints on Call Stack with Netbeans and Java

Just like this question, when debugging an application, I want to let the application pause at a breakpoint only when the current call stack has a certain method. However, I'm using Netbeans. In Java the current call stack could be obtained in…
Dante WWWW
  • 2,729
  • 1
  • 17
  • 33
2
votes
2 answers

Eclipse Java Conditional Watchpoint

Eclipse supports conditional breakpoints which break at a particular line when the condition is true. It also supports watchpoints which break immediately when a given variable is accessed/modified, regardless of the line that caused the…
arcyqwerty
  • 10,325
  • 4
  • 47
  • 84
2
votes
4 answers

Output is not getting displayed

I am writing a simple java program to find the smallest number which is divisible by all the numbers from 1 to 20. I have written the following code: package smallmultiple; public class SmallMultiple { public static void main(String[] args) { …
Abhishek Singh
  • 358
  • 2
  • 10
2
votes
1 answer

Xcode LLDB: How do I set a conditional breakpoint based on the this pointer?

I have a c++ application and am trying to debug it under Xcode using LLDB. I would like to stop inside a member function, but only when the this pointer matches a specific instance. I have tried setting a conditional in the breakpoint with the…
fbrereto
  • 35,429
  • 19
  • 126
  • 178
2
votes
4 answers

How to check if a pointer variable is junk during runtime?

I use valgrind to validate my code and it reports "Conditional jump or move depends on uninitialised value(s)" in one of my functions, which takes an array of pointers as argument. Now, how do I check if an array contains junk values (might be using…
Sulla
  • 7,631
  • 9
  • 45
  • 71
2
votes
1 answer

Visual Studio: Why don't conditional breakpoints accept F# operators?

When placing a conditional breakpoint in my code, this fails: "Sophie Dee" <> myString However, this works fine: "Sophie Dee" != myString Is this fixed in VS2012?
MiloDC
  • 2,373
  • 1
  • 16
  • 25
1
vote
0 answers

Conditional watchpoints on array in GDB

We're in the process of debugging a cloth simulator written in C++ and a common problem is when something modifies velocities to be NaN or some large number. Currently, this the best way we have to test for this is calling test_velocities_for_NaN()…
cmspice
  • 318
  • 1
  • 6
1
vote
0 answers

Configuring a Conditional Breakpoint in Spyder to Catch When an Error is Raised

I've been using the debugger in spyder and experimenting with the 'Set/Edit Conditional Breakpoint' functionality. See the code snippet below; where I set the breakpoint condition to i==2 on line 4 the IPdb will pause the code nicely when i is equal…
1
vote
0 answers

For which type VScode conditional breakpoints with an expression work in C++?

I'm trying to use conditional breakpoints on a C++ project but it's not easy. After a lot of tries I managed to find out conditional breakpoints works with int and double. I previously tried to use them with strings and chars and it didn't work but…
Tesla123
  • 319
  • 1
  • 7
1
vote
1 answer

How to create a conditional breakpoint on a socket port?

I'm working on a C# application, working with TCP sockets. In order to do this, there are following lines of source code: using System.Net.Sockets; ... var sock = (Socket)ar.AsyncState; ... if (sock.Connected) ... I would like to have a conditional…
Dominique
  • 16,450
  • 15
  • 56
  • 112
1
vote
0 answers

Equivalent of 0xCC instruction for Windows ARM64

I have a small command line application named "debugger" which acts as a debugger for a process A. Now this application works fine with x86 and x64. Now I have to migrate this "debugger" to ARM64 architecture. What this debugger very briefly does is…
1
vote
1 answer

Simple debug breakpoint conditions gives me "Unused equals expression"

I don't know what is wrong here. It happened before to me also when I tried conditional breakpoints some weeks before. Do I do something wrong or it's Android studio bug ? Also when I leave this there another error pop up:
Renetik
  • 5,887
  • 1
  • 47
  • 66
1
vote
2 answers

How to take n steps (iterations) in Python debugger (PyCharm)?

I have a breakpoint in my Python debugger. I am using PyCharm. I want to iterate lets say 100 times to reach the point where I want to debug. Now I can press 100 x times Resume Program, but is there a way to just execute a command to run n times…
Borut Flis
  • 15,715
  • 30
  • 92
  • 119
1
vote
1 answer

Conditional breakpoints in Visual Studio Code

I have following two python files in the same directory: main.py from module import f1 f1() module.py import traceback def f1(): print('f1') print(traceback.extract_stack()[-1].filename) print(traceback.extract_stack()[-2].filename) …
Philippe
  • 20,025
  • 2
  • 23
  • 32
1
vote
0 answers

Eclipse conditional breakpoint has compilation errors, in ThreadpoolExecutor

I am trying to put a conditional breakpoint in java.util.concurrent.ThreadPoolExecutor class (say in getTask()) method. I tried multiple conditions, but in all conditions, this as well as other threads keep popping the following error: "Unable to…