I regularly find it very useful when debugging to switch on the Common Language Runtime Exceptions: Thrown option in Visual Studio's Debug > Exceptions screen. I'd like a quick way of doing this, since it's always the same checkbox I'm toggling and that screen is very slow to load. In previous versions, it was possible to do this with a macro, but macros have sadly been removed from VS2012. Does anyone know of a quick/easy way to do this with a plugin/extension/keyboard shortcut?
Tell the debugger to break when an exception is thrownIn the Exception Settings window (Debug > Windows > Exception Settings), expand the node for a category of exceptions, such as Common Language Runtime Exceptions. Then select the check box for a specific exception within that category, such as System.
try Ctrl + Alt + E when debugging and click on the 'Thrown' checkbox for the exception you want to stop on.
To turn off stop on exceptions press " Ctrl + Alt + E ". This will open the Exceptions window . Untick "Common Language Runtime Exceptions - Thrown". That would prevent it from pausing from within the delegate, but not when it's rethrown on Wait .
To set Visual Studio debugger options, select Tools > Options, and under Debugging select or deselect the boxes next to the General options. You can restore all default settings with Tools > Import and Export Settings > Reset all settings.
Exception Breaker is a Visual Studio (2010, 2012, 2013) plugin created by a fellow SO user for that purpose. It was created after he worried about this issue in a similar question.
It currently works via a toolbar command button as well as a shortcut.
There is a github repository for this project as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With