Visual Studio 2010 and breakpoints

I am debugging my project, and when debugging, I have two sets of “things” that I need to track.
sometimes set A and sometimes set B, for both sets I need different breakpoints, can I collect breakpoints for groups and then disable / enable groups of breakpoints?
Otherwise, I have to set the correct breakpoints for each thread each time, and then modify them.

thanks

+4
source share
1 answer

Breakpoints have Labels .

  • Start by setting a label for each BreakPoint Alt F9 + L or Right Click -> Edit Labels .

  • Name them SetA and SetB

  • Use the search text box and enter SetB - you will see only breakpoints matching this label.

  • Now click the Enable or Disable all breakpoints matching the current search criteria button. Only those control points will be included.

Now, simply by typing SetA or SetB in the TextBox, you can enable / disable the entire group

Please note that you also have the Export and Import buttons so that you can save these settings and reload them whenever you want.

+2
source

All Articles