It seems that visual studio 2010 does not break on thrown exceptions by default for new projects - you have to go into the settings and turn that behavior on. This setting seems to be a per-project setting, rather than a system-wide one.
Is there any way to force the default behavior to be to break on thrown exceptions for all new projects?
I am running Visual Studio 2010 Ultimate, on windows 7 Professional, on a 64 bit machine.
With a solution open in Visual Studio, use Debug > Windows > Exception Settings to open the Exception Settings window. Provide handlers that respond to the most important 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.
In Visual Studio, when exceptions are thrown or end up unhandled, the debugger can help you debug these by breaking just like it breaks when a breakpoint is hit.
In visual studio, the Debug menu -> Exceptions. You can check and uncheck exceptions. You can have it break on handled thrown ones, or unhandled ones.
Assuming you mean the Debug\Exceptions...
menu dialog to catch all first chance exceptions, this is global/system-wide.
(Note that like many global settings, I think its value is saved when VS shuts down, and so beware if you have multiple instances of VS open with different values for this setting.)
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