Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to save a set of breakpoints?

Tags:

eclipse

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.

like image 506
Alderath Avatar asked Jul 05 '12 08:07

Alderath


People also ask

How do you save breakpoints?

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.

How do I save breakpoints in Visual Studio?

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.

How do I save breakpoints in eclipse?

In Eclipse (debug perspective -> breakpoints) select all the breakpoints, right click, export breakpoints!


2 Answers

In Eclipse (debug perspective -> breakpoints) select all the breakpoints, right click, export breakpoints!

like image 114
sergiofbsilva Avatar answered Oct 13 '22 01:10

sergiofbsilva


You can use breakpoint working sets - see eclipse help.

like image 43
Deepak Azad Avatar answered Oct 13 '22 01:10

Deepak Azad