AngryHacker
AngryHacker

Reputation: 61606

To catch a bug

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?

Upvotes: 4

Views: 184

Answers (3)

Lost_In_Library
Lost_In_Library

Reputation: 3483

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

Upvotes: 1

Alex Moore
Alex Moore

Reputation: 3455

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.

Upvotes: 3

SLaks
SLaks

Reputation: 887453

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

Upvotes: 1

Related Questions