Questions tagged [breakpoints]

A breakpoint is a mechanism offered by a development environment that allows to interrupt and suspend the execution of a program for debugging purpose, in view of resuming the execution.

A breakpoint is a mechanism offered by a development environment that allows to interrupt and suspend the execution of a program for debugging purpose, in view of resuming the execution.

External reference:

2934 questions
41
votes
2 answers

Possible to delete a breakpoint for good when debugging?

When debugging, changes to breakpoints are only persisted for that debugging session. Once the debugger detaches the breakpoints are restored to their 'pre-debug' state. I can appreciate this is sometimes useful, and understand why it defaults this…
Michael Shimmins
  • 19,961
  • 7
  • 57
  • 90
41
votes
4 answers

How do breakpoints work in C++ code?

How do breakpoints work in C++ code? Are they special instructions inserted in between some assembler instructions when the code is compiled? Or is there something else in place? Also, how are stepping-through-the-code implemented? The same way as…
gablin
  • 4,678
  • 6
  • 33
  • 47
40
votes
4 answers

How do you add breakpoints to a Python program in IDLE?

I solved this already, I'm just posting it here because I couldn't figure it out with google, or by reading the docs. I only found it by accident. To add a breakpoint, right-click on the line that you want to add a breakpoint on and select "Set…
Nick ODell
  • 15,465
  • 3
  • 32
  • 66
39
votes
8 answers

Breakpoint-induced interactive debugging of Python with IPython

Say I have an IPython session, from which I call some script: > run my_script.py Is there a way to induce a breakpoint in my_script.py from which I can inspect my workspace from IPython? I remember reading that in previous versions of IPython one…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
38
votes
2 answers

OpenJDK breaks on processWorkerExit with no breakpoint

I'm running tomcat 7.0.21 on OpenJDK java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.10.2) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) in debug mode via Eclipse. Periodically after serving an…
Ray
  • 1,324
  • 10
  • 18
38
votes
11 answers

Firebug - Breakpoint doesn't hit

I am setting breakpoints in an external JS file and I haven't been able to get Firebug hit the breakpoint in a consistent way. It works sometimes but most of the times it doesn't. The only way I can get it to work is by switching on "Break on all…
DotnetDude
  • 11,617
  • 35
  • 100
  • 158
38
votes
20 answers

Delphi: why breakpoints from time to time are not usable (green highlighted line on IDE)?

From time to time I lose breakpoint functionality in Delphi. I thought this to be a Delphi 2009 issue but now I have also it in Delphi XE. In Delphi 2009 by deleting .dproj file I made the breakpoints work again. In Delphi XE I am not able to make…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
38
votes
5 answers

How to use breakpoints in Eclipse

I am using the Eclipse IDE. I don't know how effectively put breakpoints in Eclipse and go forward and backward into it. Can anyone help me? Can anyone suggest a site suitable for me?
Jisson
  • 3,566
  • 8
  • 38
  • 71
38
votes
16 answers

Debugging SSIS Script task - Breakpoint is enabled but it does not hit

I am working on an SSIS package. The package has a script (C# language) task. I need to debug the script task. I set the break point. The script in script editor (Visual Studio) and the task in SSIS package editor, both, show break point in red…
HappyTown
  • 6,036
  • 8
  • 38
  • 51
38
votes
6 answers

Set debugger breakpoint at end of a function without return

I am debugging method f() that has no return in it. class A(object): def __init__(self): self.X = [] def f(self): for i in range(10): self.X.append(i) I need to see how this method modifies…
user
  • 5,370
  • 8
  • 47
  • 75
38
votes
3 answers

Stop at the line where a variable gets changed

I am trying to track down when a variable gets updated. I have a watcher, but is there any way to set it up so that the execution can be paused when the value is getting updated? This is called a watchpoint or a data breakpoint.
thinkanotherone
  • 2,905
  • 9
  • 29
  • 37
38
votes
6 answers

Visual Studio - can be a breakpoint called from code?

I have a unit test project based on UnitTest++. I usually put a breakpoint to the last line of the code so that the I can inspect the console when one of the tests fails: n = UnitTest::RunAllTests(); if ( n != 0 ) { // place breakpoint here …
danatel
  • 4,844
  • 11
  • 48
  • 62
37
votes
6 answers

GDB breakpoints

I have a list of breakpoints which I want to add each time I debug a particular program. Is there a way I can put all of the breakpoint information in a file and use it at the start of each debug session? In other words can I provide a script file…
Sachin Khot
  • 1,412
  • 2
  • 14
  • 18
36
votes
4 answers

Does a breakpoint halt all threads?

If I have two threads running concurrently in my program and put a breakpoint on one of them, will the other thread stop also halt when this breakpoint is hit, or will it continue executing regardless? (I am writing in Java and using NetBeans)
Eamonn McEvoy
  • 8,876
  • 14
  • 53
  • 83
35
votes
2 answers

Chrome DevTools: setting a breakpoint on document scroll change?

Sometimes, in a large clientside webapp, it's necessary to identify which line of code has scrolled the document with a scrollTo() call (or if this is even the cause of the scroll*). Is there any Chrome DevTools feature which will break JS execution…
aaaidan
  • 7,093
  • 8
  • 66
  • 102