In eclipse, you can have 5 types of break points:
- the one you're used to: a regular breakpoint
- a conditional breakpoint at which you stop on a line, but only when a certain condition is met
- method breakpoint that starts when the method is entered
- An exception checkpoint that stops on any line that throws a specific exception.
- (according to the comments I forgot about these) watchdogs: using them, you will break whenever a specific field is available or changed. They can be customized from the diagram view.
The second option is also placed on a specific line, but as long as it needs to be configured, it can be considered something more special. The characters of the first two breakpoints are different. The third has a special character. The fourth has no symbol (it does not belong to any particular place).
This is because it beats your words Doesn't the usually breakpoint refer to a line .
You can also see the difference between them if you have this code:
void func() { int a = 16; }
Try running toggle breakpoint and toggle line breakpoint on the void func() . Do you see the difference? Switching a breakpoint actually selects the appropriate option between the toggle line breakpoint and the toggle method breakpoint .
Boris Strandjev
source share