Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 annotations mean?

like image 808
Fixpoint Avatar asked Nov 02 '10 15:11

Fixpoint


People also ask

What are Eclipse breakpoints?

A breakpoint is a signal that tells the debugger to temporarily suspend execution of your program at a certain point in the code. To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position.

What is trigger point in Eclipse breakpoint?

Trigger points act as triggers for all other breakpoints, so any other breakpoints will act as if they are disabled until the trigger point is hint, and will work normally from then on.

What does breakpoint mean in debugging?

In software development, a breakpoint 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.

What do breakpoints do in code?

A breakpoint helps to speed up the debugging process in a large program by allowing the execution to continue up to a desired point before debugging begins. This is more efficient than stepping through the code on a line-by-line basis.


2 Answers

  • blue ball: regular breakpoint, active (possibly with a hit count set)
  • empty ball (i.e. white): breakpoint has been disabled (remove checkmark in the breakpoint view, or disable in context menu)
  • diagonal line through breakpoint: all breakpoints have been disabled (button skip all breakpoints in breakpoint view)
  • question mark next to breakpoint: a condition is active for this breakpoint (look under properties of the breakpoint)
like image 97
sleske Avatar answered Sep 20 '22 12:09

sleske


The tick means that the breakpoint has been successfully set. I think it may only appear when you're doing remote debugging; when you add a breakpoint, it starts out as a plain ball, but once the JPDA agent in the remote system has been told about it, and has confirmed it's set, then it gets a tick.

like image 24
Tom Anderson Avatar answered Sep 20 '22 12:09

Tom Anderson