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
143
votes
5 answers

Debugging automatic properties

Is there any way to set breakpoint on setter/getter in auto-implemented property? int Counter { get; set; } Other than changing it to standard property (I'm doing it in this way, but to do that I have to change and recompile whole project)
Marek Kwiendacz
  • 9,524
  • 14
  • 48
  • 72
142
votes
52 answers

Why aren't Xcode breakpoints functioning?

I have breakpoints set but Xcode appears to ignore them.
AlanKley
  • 4,592
  • 8
  • 40
  • 53
115
votes
10 answers

Breakpoint at "throw new SilentExitException()" in Eclipse + Spring Boot

Every time I run my Spring Boot project on debug mode in Eclipse IDE (Spring Tool Suite), the thread stops at throw new SilentExitException(); line even without a breakpoint. Is there some solution to avoid this…
101
votes
2 answers

How to make a GDB breakpoint only break after the point is reached a given number times?

I have a function that is called some large number of times, and eventually segfaults. However, I don't want to set a breakpoint at this function and stop after every time it's called, because I will be here for years. I've heard that I can set a…
Tony Stark
  • 24,588
  • 41
  • 96
  • 113
97
votes
5 answers

How to set a conditional breakpoint in Xcode based on an object string property?

I'm looking to be able to have the debugger break when it reaches a particular string match. As an example, I might have something like this: Foo myObj = [self gimmeObj]; myObj might have a property called name. I want the debugger to stop on the…
Coocoo4Cocoa
  • 48,756
  • 50
  • 150
  • 175
90
votes
4 answers

Are "EXC_BREAKPOINT (SIGTRAP)" exceptions caused by debugging breakpoints?

I have a multithreaded app that is very stable on all my test machines and seems to be stable for almost every one of my users (based on no complaints of crashes). The app crashes frequently for one user, though, who was kind enough to send crash…
Dennis
  • 1,215
  • 1
  • 12
  • 15
87
votes
9 answers

Chrome JavaScript Debugging - how to save break points between page refresh or break via code?

When using Chrome and it's JavaScript debugger, every time I reload my page / scripts, my breakpoints are lost and I have to go find the script file in the pop-up, find the line of code for my break point, click to add it, etc. Is there a way to…
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76
87
votes
3 answers

How to set break point on one file of a project which has many files with same name?

I want to set a break point in gdb on file service.cpp on line 45 and I do: gdb> break service.cpp:45 The problem is that there are many service.cpp files in my application and it is not picking the one I am interested in. How can I specify the…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
85
votes
6 answers

How to wait until remote .NET debugger attached

Today I ran into a problem were I needed to remote-debug a program. The program was launched from another system, so I really don't have an opportunity to interact with it on the command line. I could change its source easily though. What I needed…
Clinton Pierce
  • 12,859
  • 15
  • 62
  • 90
84
votes
7 answers

What different breakpoint icons mean in Eclipse?

When working with breakpoints in Eclipse I sometimes notice that they have different icons / annotations (markers on left sidebar). Sometimes it's just a blue ball, sometimes it has a checkmark on it and sometimes it is crossed. What do all these…
Fixpoint
  • 9,619
  • 17
  • 59
  • 78
83
votes
6 answers

What is the shortcut to skip all break-points in VS?

When I am at a breakpoint and if I want to ignore all the rest of breakpoints and move on, what shortcut should I use?
pencilCake
  • 51,323
  • 85
  • 226
  • 363
81
votes
5 answers

Why does my Eclipse project have phantom debugger breakpoints?

I've got a small project which, when run in the Eclipse debugger, always seems to stop in FileInputStream.class line 106, where files are opened. There are no breakpoints set, but Eclipse behaves exactly as if I have a breakpoint here. If I clear…
skiphoppy
  • 97,646
  • 72
  • 174
  • 218
80
votes
11 answers

How to view all the breakpoints in eclipse?

I am new to eclipse and I am unable to view all the breakpoints that I have placed. I even tried Window --> Show View --> Breakpoints but that is also not working.
Anshuman Jasrotia
  • 3,135
  • 8
  • 48
  • 81
79
votes
6 answers

Android Studio's debugger not stopping at breakpoints within library modules

At the moment I'm developing an Android app that is based on third party code. I started to set breakpoints for understanding the code and soon ran into a problem. Suddenly I couldn't get Android Studio to stop at breakpoints anymore. I tried to set…
olik79
  • 1,402
  • 1
  • 13
  • 16
78
votes
7 answers

Can .NET source code hard-code a debugging breakpoint?

I'm looking for a way in .NET (2.0, C# in particular) for source code to trigger a debugging break as if a breakpoint was set at that point, without having to remember to set a specific breakpoint there in the debugger, and without interfering with…
Rob Parker
  • 4,078
  • 1
  • 25
  • 26