ProfK
ProfK

Reputation: 51063

Unhandled Exceptions Crashing VS 2008

In the last few weeks, I've had two occasions where the debug process (vshost.exe) crashes due to an unhanded exception. The first was trying to use the Activator class to instantiate an object, I don't remember details, and today was trying to load a custom config section where I had erred in specifying the type for the section. In both cases debugging proceeded correctly when I set the debugger to break when exceptions are thrown.

Anyone know anything about such an issue?

Upvotes: 0

Views: 52

Answers (1)

JaredPar
JaredPar

Reputation: 754505

In order to diagnose this try the following

  • Tools -> Options -> Debugging
  • Uncheck "Enable Just My Code"

Then re-run your scenario. When Just My Code is enabled, exceptions thrown in code not deemed to be yours will not be immediately displayed in the debugger.

Upvotes: 1

Related Questions