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

Programmatically stop JavaScript execution in Firebug

I am currently debugging complex JavaScript code with Firebug. I am looking for a way to stop the JavaScript execution as if it was a breakpoint programmatically. Example: instructions ... degugger.breakpoint(); // the execution stops here as if a…
Nikko
68
votes
8 answers

How can I set a breakpoint in referenced code in Visual Studio?

My main solution is using code from a utility class library, that I wrote myself, but is a part from another solution. How can I set a breakpoint in the referenced DLL file?
Dabblernl
  • 15,831
  • 18
  • 96
  • 148
66
votes
10 answers

How to effectively remove all breakpoints in Android Studio

I tried various steps to remove breakpoints from Android Studio . One of them listed in question BreakPoint link I followed this but , still there are some green colored with red circle remaining , what are those as seen in image below and how to…
Yatin
  • 2,969
  • 9
  • 34
  • 68
63
votes
5 answers

Visual Studio: How to stop breakpoint hit from stealing focus?

When a breakpoint is hit in Visual Studio, it steals the focus from whatever other application the programmer is viewing/typing into at that moment. This can be very irritating since VS grabs any keyboard input the programmer was typing into the…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
60
votes
7 answers

How to set a breakpoint in Eclipse in a third party library?

I'm getting a NullPointerException in a Class from a 3rd party library. Now I'd like to debug the whole thing and I would need to know from which object the class is held. But it seems to me that I cannot set a breakpoint in a Class from a 3rd…
boutta
  • 24,189
  • 7
  • 34
  • 49
59
votes
9 answers

why can't I set up a breakpoint in eclipse?

For some odd reason, I can't use breakpoints in my eclipse project. All breakpoints that I set have a diagonal line on them, above the dot in the respective line (on the left margin of the window), as if they are blocked. When I run in debug mode,…
kloop
  • 4,537
  • 13
  • 42
  • 66
57
votes
2 answers

Where are Visual Studio breakpoints saved?

I seem to be getting breakpoints from other programmers when checking out code... Where is the list of breakpoints saved by Visual Studio? In the vbproj file? vbproj.user file? documents and settings? are they meant to be specific to the solution,…
Laurent
  • 5,953
  • 14
  • 43
  • 59
56
votes
4 answers

What is meant by a number after "break" or "continue" in PHP?

Could someone please explain, with examples, what is meant by loop break 2 or continue 2 in PHP? What does it mean when break or continue is followed by a number?
tree em
  • 20,379
  • 30
  • 92
  • 130
56
votes
2 answers

gdb, set breakpoint on all functions in a file

Is there a single command in gdb which can set breakpoints on all the functions in a given file ? I know about rbreak regex which sets breakpoints in matching regular expression functions, but my file doesnt have fixed patterned functions. In…
Smash
  • 839
  • 1
  • 9
  • 10
54
votes
8 answers

Can I set a breakpoint when variable is getting a specific value in .NET?

I am using Visual Studio 2010, and I know this feature is available in C++. I need to debug some code, that changes a variable to several values. I want to debug the code in a specific case, when the variable getting a specific value. I know I can…
54
votes
2 answers

Android Studio threaded debugging

I've been having trouble debugging a multithreaded app with Android Studio 1.1. It seems as if when a breakpoint is hit all other threads also stop, not just the one with the breakpoint. I created a simple test app with the following method in the…
miguel
  • 16,205
  • 4
  • 53
  • 64
52
votes
8 answers

Why is Chrome pausing on some line inside jQuery?

Every time I refresh my web app with the Chrome Inspector open it pauses and takes me to the sources tab with a big red arrow icon pointing to some weird line inside jQuery. I see Paused in debugger in the top-middle of the window, and Paused on…
50
votes
3 answers

Break on a change of variable value

Similar to other questions here, like this one. Is there a way to break on the change of a variable value in any JavaScript debugger? (like IE Developer tools, Visual Studio, or Firebug)? I guess it's something like a "watch variable", but I want to…
user420667
  • 6,552
  • 15
  • 51
  • 83
50
votes
6 answers

Breakpoint right before page refresh?

I'm debugging some 3rd-party minified Javascript that somewhere is triggering a browser page refresh. However, I can't figure out what part of the code is causing the refresh. Is there a way to put a breakpoint in Chrome that will be hit just before…
Thomas Johnson
  • 10,776
  • 18
  • 60
  • 98
49
votes
9 answers

What is the difference between hardware and software breakpoints?

What is the difference between hardware and software breakpoints? Are hardware breakpoints are said to be faster than software breakpoints, if yes then how, and also then why would we need the software breakpoints at all?
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411