How to disable exception assistant and unhandled exception popup in Visual Studio 2008 Express

眉间皱痕 提交于 2019-12-01 03:20:18
Alconja

In the Debug menu, go to Exceptions (Ctrl+Alt+E). From here you can tell the debugger not to break when an exception is thrown. Just uncheck all the boxes for the lazy option, or go digging for the specific exceptions you don't want it to break on.

Note however, that this may not be what you want to happen under normal debugging situations, so don't forget to turn it back on later if you're trying to debug something & want to find the exception.

Edit: My apologies, even though it's written several times in the question (including the title), I failed to notice you were talking about the express edition... teach me for skim reading the question. Not sure if the above works or not in express edition, so it might still be worth a try.

Edit 2: Ok, looks like the Exceptions dialog is still available in express edition.

I'll take a guess that you're encountering one of the following:

  • You're throwing a "special" exception like StackOverflowException that the runtime handles differently from other exceptions.
  • Your test code creates a new thread, and on that thread an exception is thrown.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!