问题
I frequently use Debug -> Exceptions -> check CLR Exceptions
during debugging sessions. Sometimes, an exception gets thrown and handled, but I really want to find the source of the exception. In order to do this without seeing first-chance exceptions that I don't care about, I start my app, and then check CLR Exceptions:

This gets really tedious, and I'd love to have a toggle button in my VS2010 toolbar that allows me to only set/reset CLR Exceptions at will, without having to key in CTRL+D, E, check the box, and then click OK (and then do the same process again to turn off the exceptions). I went into the toolbar customization, but all I could get was a button that bring up the Exceptions dialog. This is obviously less efficient than hitting CTRL+D, E.
Does anyone know of another way to add this? Will it require a VS addin? A keystroke mapping would be nice as well.
I've never used the Macro Recorder in VS ever, but maybe this is one place where it's necessary?
回答1:
Yes. Use the macro recorder to record the steps.
Rename the macro to something mnemonic.
go to (tools)(customize)
at the bottom there is a keyboard button you can use to map that macro to a key or
the commands tab will allow you to (add command) to any specific menu or tool bar.
来源:https://stackoverflow.com/questions/5406719/need-efficiency-hack-for-debugging-in-visual-studio-2010