Asad Khan
Asad Khan

Reputation: 11899

Enable and disable all breakpoints in eclipse

Is there a way to enable and disable all breakpoints in Eclipse...? I dont want to remove them just disable them & enable them after some condition is met.

Thanks in advance

Upvotes: 16

Views: 34500

Answers (3)

Betlista
Betlista

Reputation: 10547

My own question lead me here when marked as duplicity.

...just disable them & enable them after some condition is met.

There is also option to configure breakpoint with a condition (right click on breakpoint):

Eclipse breakpoint properties

Upvotes: 0

M.C.
M.C.

Reputation: 1745

This is a bit old question, but maybe someone will find this useful..

If you would like to disable all breakpoints and enable just one breakpoint, then you should open the Breakpoints window in the Debug tab and Select all Breakpoints(Ctrl - A) and right click -> disable and then select the breakpoint you need activated and right click -> enable.

Upvotes: 20

paxdiablo
paxdiablo

Reputation: 882606

Under the Run menu, there's a Skip All Breakpoints checkbox. If you select that, breakpoints won't fire (the actual breakpoint markers in the source have a line drawn through them to indicate they're in skip mode).

Of course, in the default configuration, running the code (rather than debugging it) also seems to ignore breakpoints so you may want to try running it instead of debugging. Note that this is default behaviour under Galileo/Ubuntu - whether that's different under other versions or operating systems is unknown to me.

Upvotes: 25

Related Questions