Visual Studio 2010: Exporting and Importing Break-Points
Coding less and debugging more has always been part of programming. Debugging of code is always accompanied by locating appropriate break-points and inspecting program execution. But locating break points again and again whenever a solution is opened for debugging consumes time. When we feel the program execution is happening as expected, then we either delete break-points or disable them. Overall, programmers spend few minutes for break-points activities.
Visual Studio 2010 comes with new feature of exporting and importing break-points in an xml file. So when we are done with break-points, we can export and save at a physical location. Then, delete the break-points (Ctrl + Shift + F9). Whenever we require break-points again in code, we can import the settings file that we saved last time. This xml file contains all the required settings of break-points in the code like line number, file name, etc.
Snapshots shown below are self-explanatory for .Net programmers.
Open break-point window (Ctrl + Alt + B).
Fig 1: Exporting break-points
Fig 2: Importing break-points
After importing break-point xml file, the break-points are again set at lines and files where break-points were set originally.
Fig 3: Break-point xml structure