调试在出错时退出(Visual Studio)

时间:2021-11-21 02:51:52

I've been messing about a bit to try and get my debugger (VS2010) to allow me to step into the framework source code. (msdn) This didn't work and I ran out of time so changed my settings back, and now I don't get dropped into the debugger when a web project (in debug mode) throws an error, I simply get the yellow screen of death.

我一直在搞乱一点,试图让我的调试器(VS2010)允许我进入框架源代码。 (msdn)这没用,我没时间了,所以改回了我的设置,现在我不会因为一个web项目(在调试模式下)抛出一个错误而掉进调试器,我只是得到了黄色的屏幕死亡

What's strange is that I can put a breakpoint in my code which works fine, and I can step over my code but as soon as I hit the line causing the error it drops out of the debugger back to the error in the browser.

奇怪的是,我可以在我的代码中放置一个断点,它可以正常工作,我可以跳过我的代码,但是一旦我遇到导致错误的行,它就会从调试器中退回到浏览器中的错误。

I'm sure I've just got a setting wrong somewhere but its incredibly frustrating!

我确定我在某个地方设置了一个错误,但令人难以置信的是令人沮丧!

1 个解决方案

#1


0  

A colleague saved me! This article about Break when exception unhandled had the solution, I had the "Enable just my code" unchecked in Tools > Options > Debugging. No idea how it happened, but fixed now!

一位同事救了我!这篇关于在未处理异常时使用Break的文章有解决方案,我在工具>选项>调试中未选中“仅启用我的代码”。不知道它是怎么发生的,但现在修好了!

#1


0  

A colleague saved me! This article about Break when exception unhandled had the solution, I had the "Enable just my code" unchecked in Tools > Options > Debugging. No idea how it happened, but fixed now!

一位同事救了我!这篇关于在未处理异常时使用Break的文章有解决方案,我在工具>选项>调试中未选中“仅启用我的代码”。不知道它是怎么发生的,但现在修好了!