I have a set of breakpoints which I used for debugging one issue. When I want to debug something else, these breakpoints are annoying, so I need to disable/delete them. However, I feel that I might want to be able to recreate the first set of breakpoints later.
Is it possible to save all currently active breakpoints so that you can switch between different sets of breakpoints with just one operation?
If I have 30 breakpoints, it would be very tedious to recreate/reenable them all manually.
To save breakpoint definitions to a file use the save breakpoints command. This command saves all current breakpoint definitions together with their commands and ignore counts, into a file filename suitable for use in a later debugging session.
To save the breakpoints, you just need to click on the “Export” button in breakpoint window as shown in the following figure. You can use the saved XML file for the future and you can pass the same to other developers. You can also save breakpoints based on the search on labels.
In Eclipse (debug perspective -> breakpoints) select all the breakpoints, right click, export breakpoints!
In Eclipse (debug perspective -> breakpoints) select all the breakpoints, right click, export breakpoints!
You can use breakpoint working sets - see eclipse help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With