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

Conditional BreakPoint depending on another breakpoint in Chrome Dev Tools

I need to stop at breakpoint only if the code was stopped first in another breakpoint. Example: for(let i=0; i<5; i++){ someFunction(); // put conditional breakpoint here with i==3 } function someFunction(){ // put another…
Enrique
  • 4,693
  • 5
  • 51
  • 71
0
votes
1 answer

Visual Studio unable to set conditional expression in breakpoint

How do I set a conditional breakpoint in Visual Studio 2019 (Enterprise or Community Edition) that evaluates using an overloaded operator[] ? I attach a minimal non-working example. #include struct Point3D { private: int*…
0
votes
0 answers

Monitor record field change

Currently I am struggling with monitoring a record field change. Say, we have a record defined as usual: TMyRecord = record Field1: Word; Field2: Single; Field3: Integer; end; I would like to monitor Field2 and display a dialog box as soon as…
Paul
  • 25,812
  • 38
  • 124
  • 247
0
votes
1 answer

Is it possible to set a "global" conditional breakpoint that is evaluated anywhere the condition is valid?

I am working with a C++ codebase that does not use exceptions, and the convention is that every function returns false on failure, such that a significant portion of the code looks like this: bool compute_something(int& result) { bool ok =…
0
votes
0 answers

WinDbg conditional breakpoint before a .NET GC on a particular generation

Is it possible to set a breakpoint immediately before GC collects gen2, using windbg? The following breaks after GC, how can I change it to work for my needs: bp clr!ThreadSuspend::RestartEE ".if (dwo(clr!SVR::GCHeap::GcCondemnedGeneration)==2) {kb}…
0
votes
1 answer

WinDbg conditional breakpoint after .NET GC

I'm setting a conditional breakpoint at the end of a GC cycle. The program breaks but it cannot evaluate the GcCondemnedGeneration variable so program breaks on every GC cycle regardless of the actual generation collected. This is the breakpoint…
0
votes
0 answers

Setting the same condition for multiple breakpoints in a single step.(Eclipse)

I want to set a single condition for multiple breakpoints. Is there any way to do this in eclipse in a single step rather than editing each breakpoint and setting the condition?
Gautham M
  • 4,816
  • 3
  • 15
  • 37
0
votes
0 answers

Break anywhere when $r1 equals to a certain string in GDB

Is there anyway to break on gdb when $r1 equals to a certain string I know there is : break [addr] if ((int)strcmp($r1, "hello")) == 0 But what to set in addr when I just wanna break when the r1 is "hello" no matter the current function/address?
Neolex
  • 235
  • 3
  • 15
0
votes
1 answer

Can I dynamically place a breakpoint in the event of an exception in Ruby?

I'd like to be able to set conditional breakpoints in ruby-debug, where the condition is "An exception was thrown." What I'd like is the ability to land on a breakpoint whenever an exception is thrown on that line (a la MATLAB's ultra-convenient…
0
votes
2 answers

PhpStorm doesn't stop on conditional breakpoints in PHP Code

I'm using PhpStorm 2016.3.2 and my problem is it doesn't stop on conditional breakpoints. Normal breakpoints work fine. Condition I have: $id == 5 Also, if I activate the Checkbox "Log message to console" nothing happens, I don't see any new…
EugenA
  • 323
  • 3
  • 14
0
votes
0 answers

Core Data Entity record disappearing

In some iOS app written in Objective C and using Core Data, I have the following issue. I have an entity (called myEntity) initialized with one record. I have checked, by counting the number of records, using the debugger, that it contains one…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

Is it possible to have a break point on state of an object in intellij?

I have an object and a bunch of functions make some changes to the state of this object (by changing one of its members or a member of its members and so on..). I want to inspect the changes made by each of these functions. Is there a way to have a…
0
votes
1 answer

Visual Studio 2005 : Break when a value appears

I'm trying to simplify my debugging tasks and I had an idea which could increase my debugging speed. Suppose I have a value, say 2.8651 that appear in the code at a moment I do not know. I'm wondering if it was possible to create a super…
0
votes
1 answer

break inside for loop within while loop

I tried to break out of a for loop but it doesn't break. How do I get or break out of this do...while loop from inside of the for loop? Here CompanyEmployee is an ArrayList of objects of the Employee class and the CasualEmployee class inherits from…
bijay
  • 1
0
votes
1 answer

how to put a breakpoint inside a function if it's called through a specific function

There are 3 functions: f1, f2, f3: void f1() { f3(); } void f2() { f3(); } void f3() { .... } I want to put a breakpoint somewhere inside f3, but only if f3 was called from f1.
Dharmendra
  • 384
  • 1
  • 5
  • 22