简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM