4

The typical workflow of catching an exception in action is get to the section of code where you suspect the exception of happening, select Debug/Exceptions, check Thrown for Common Language Runtime Exceptions, OK your way out of it, and continue execution.

This is a massive PITA. Is there a shortcut (or a context menu) that can be configured to toggle the Thrown checkbox for the Common Language Runtime Exceptions?

AngryHacker
  • 59,598
  • 102
  • 325
  • 594
  • 1
    Duplicate of http://stackoverflow.com/questions/958011/toggle-break-when-an-exception-is-thrown-using-macro-or-keyboard-shortcut. No simple solution. – Michael Petrotta Oct 08 '09 at 17:14
  • `bu myapp!myfunction "sxe clr;g";` :P http://stackoverflow.com/questions/105130 – Remus Rusanu Oct 08 '09 at 17:55
  • Perfect. http://stackoverflow.com/questions/958011/toggle-break-when-an-exception-is-thrown-using-macro-or-keyboard-shortcut did the trick. – AngryHacker Oct 08 '09 at 18:50

3 Answers3

3

Ctrl+Alt+E will bring up the exceptions menu.

Down Arrow, Alt+T will check/uncheck that box.

This might be the closest you will get.

Alex Moore
  • 3,415
  • 1
  • 23
  • 39
1

You could try writing a macro, using the ExceptionGroups property.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
1

Or you can use visual studio macros. How to create Macros in Visual Studio 2010

Lost_In_Library
  • 3,265
  • 6
  • 38
  • 70