调试器不会停止错误 [英] debugger does not stop on error

查看:151
本文介绍了调试器不会停止错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2012在Asp.net MVC4项目上工作。



当调试过程中出现错误时,它用于停止错误。 p>

但是突然之间,调试器不会停止,只是吐出错误信息网页,如下所示。

$ b $ '/'应用程序中的服务器错误。



字典中不存在给定的键。



说明:在执行
当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误的更多
信息及其在代码中的位置。



异常详细信息:System.Collections.Generic.KeyNotFoundException:
给定的键不在字典中。



源错误:...



堆栈跟踪:...


如何将调试器设置为停止错误?

解决方案

确保启用异常助手:




I'm working on Asp.net MVC4 project using Visual Studio 2012.

When there's an error during debugging, it used to stop on the error.

But suddenly, the debugger does not stop and just spit out the error information webpage like below.

Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error: ...

Stack Trace: ...

How can I set the debugger to stop on the error?

解决方案

Make sure the exception assistant is enabled:

这篇关于调试器不会停止错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆