Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick way to toggle 'break on all exceptions' in VS2012?

Tags:

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?

like image 500
Tim Woods Avatar asked Mar 08 '13 10:03

Tim Woods


People also ask

How do I break all exceptions in Visual Studio?

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.

How do I stop exceptions?

try Ctrl + Alt + E when debugging and click on the 'Thrown' checkbox for the exception you want to stop on.

How do I stop Visual Studio from breaking on exception?

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 .

How do I reset Visual Studio exceptions?

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.


1 Answers

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.

like image 60
Simon Opelt Avatar answered Dec 27 '22 15:12

Simon Opelt