Visual Studio not breaking on user-unhandled excep

2019-01-14 20:03发布

When running my app in Visual Studio, it's ending on unhandled exceptions rather than showing a message box with the exception info and continuing on as I'm accustomed to.

What options do I need to change to get it back to the behavior I'm used to?

Edit: In Debug/Exceptions I do have the User-unhandled option selected for CLR Exceptions.

9条回答
The star\"
2楼-- · 2019-01-14 20:40

In my case, when I went to Debug -> Exceptions, the User-unhandled column was missing. Going to Debug -> Options and Settings and enabling Enable Just My Code fixed this, which consequently fixed this problem altogether.

查看更多
够拽才男人
3楼-- · 2019-01-14 20:41

For visual studio 2015 :

1.Open Exception settings window (it's new in 2015) open Exception settings window (it's new in 2015)

2.Check All CLR Exceptions enter image description here

3.If you don't need visual studio to throw specific exceptions uncheck this enter image description here

查看更多
Lonely孤独者°
4楼-- · 2019-01-14 20:42

Debug->Exceptions->Check Thrown/User-Unhandled for Common Language Runtime Exceptions

edit: Maybe try to do a clean/rebuild, and run again? Maybe debug symbols are corrupt or something..

查看更多
登录 后发表回答