开发者

Why Won't Visual Studio Stop When Exceptions Occur?

For some reason Visual Studio 2008 doesn't always stop when an exception occurs to report the exception when I am Debugging. Sometimes it just jumps up an arbitrary number of frames in the stack and continues on with program execution. This results in bugs that are very difficult to resolve. Frankly, its rather annoying. I want to know about every exception that occurs unless I s开发者_运维百科pecifically wrap it in a try block (which I only do around third party or resource bound modules). I can't even see how this would be beneficial even in release as the result is an application that isn't working right. I would rather my end-users get a big error message in there face than an application that facilitates corrupting data.


Use "Exceptions" window to specify exactly the exceptions you want the IDE to break on:

Why Won't Visual Studio Stop When Exceptions Occur?

The "Exceptions" window is available through the "Debug" menu:

Why Won't Visual Studio Stop When Exceptions Occur?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜