VS 2008 unhandled exception error

In the past few weeks, I have had two cases where the debug process (vshost.exe) crashes due to an unexpected exception. The first one was trying to use the Activator class to instantiate an object, I don't remember the details, and today I was trying to load a custom config section where I made a mistake by specifying the section type. In both cases, the debugging was done correctly when I set up the debugger to break when throwing exceptions.

Does anyone know anything about such a problem?

0


a source to share


1 answer


To diagnose this try the following

  • Tools -> Options -> Debug
  • Uncheck "Include only my code"


Then run your script. When only "My Code" is enabled, exceptions thrown in code that is not considered yours will not immediately show up in the debugger.

+1


a source







All Articles