Import and Export Breakpoints in Visual Studio 2010
A breakpoint is a point in your application's code where the application at runtime will break and then you can invoke the debugger so that you can inspect the progress of the program.
Once you set breakpoints in your code, you can control the flow of your program -- the program would be halted and one line at a time would be executed. With a view to persisting breakpoints for later usage, Visual Studio 2010 lets you import and export breakpoints in your code.
To use this feature, do the following:
- Open Visual Studio 2010 IDE.
- Write a sample program.
- Set one or more Breakpoints in your code
- Open the Breakpoint window by simultaneously pressing the CTRL + ALT +B keys.
- Click on the Export button.
- In the "Save As" dialog window, name the file to which the breakpoints would be exported. The breakpoints would be saved in XML format.
Alternatively, you can follow steps 1 to 5 and then click on the Import button. Then, you can choose the XML file where your breakpoints were saved and then open them to see all your breakpoints appear in code. Awesome, isn't it?

