Command: EditorContextMenus.CodeWindow.Breakpoint.BreakpointExport; DebuggerContextMenus.BreakpointsWindow.Exportselected;
Ever just wanted to email someone your Breakpoints? Maybe do a mass change to all your breakpoints at once with a text editor? Or just save them in case you mess them up doing something else?
Well you can do it all with the Import / Export Breakpoint feature! Here is how it works:
- Set one or more Breakpoints in your code
- Open the Breakpoint window (CTRL + ALT +B)
- Notice the new “Export” button. Pay attention as it WILL EXPORT ONLY BREAKPOINTS MATCHING THE CURRENT SEARCH CRITERIA!! In other words, if you don’t see the Breakpoint in the Breakpoint window then it WILL NOT BE EXPORTED. Just saying.
- When you click on the “Export” button you get the classic “Save As” dialog and notice your breakpoints are saved out as an XML file:
- Put in some cool name and save your Breakpoints out.
- WARNING: Don’t do this next part unless you are just practicing these skills on a non-production project solution.
Delete all your Breakpoints.
- Now click on the new “Import” button:
- Choose your XML file you just exported and click “Open” then see all your Breakpoints magically re-appear!