Turn on exception handling in visual studio 2010 by default for all projects

Visual studio 2010 does not seem to break the default exceptions for new projects β€” you need to go into settings and enable this behavior. This option seems to be a setting for each project, not a system-wide one.

Is there a way to force the default behavior to break into excluded exceptions for all new projects?

I am running Visual Studio 2010 Ultimate, on Windows 7 Professional, on a 64-bit machine.

+7
visual-studio-2010
source share
2 answers

Assuming you mean the Debug\Exceptions... dialog to catch all the exceptional exceptions, this is global / system-wide.

(Note that, like many global parameters, I think its value is saved when VS is turned off, and so be careful if you have multiple VS open instances with different values ​​for this parameter.)

+4
source share

It is loaded for the first time from the registry (and after that it is saved in the solution):

HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio [VS version] \ Configuration \ AD7Metrics \ Exception {449EC4CC-30D2-4032-9256-EE18EB41B62B} \ Runtime common language exceptions \ [namespace] \ [exception type name]

[VS version] can be 9.0 or 10.0 or any other bush (for example, 9.0Exp, if you use the VS 2008 VSK experimental bush)

[namespace] can be, for example, System and [name of exception type] System.AppDomainUnloadedException.

Then you must set the value of the Status key (to make it compatible with another existing exception configuration).

+3
source share

All Articles