【发布时间】:2013-07-31 18:11:16
【问题描述】:
Visual Studio 中的错误如何显示如下图:
而不是使用错误列表?
我得到的异常显示如下:
(图片来自:How to tell the debugger to ignore breaking on thrown exceptions?,Where did my Visual Studio exception assistant go?)
【问题讨论】:
Visual Studio 中的错误如何显示如下图:
而不是使用错误列表?
我得到的异常显示如下:
(图片来自:How to tell the debugger to ignore breaking on thrown exceptions?,Where did my Visual Studio exception assistant go?)
【问题讨论】:
如果您查看工具 |调试中的选项 |通用节点,请确保选中“启用异常助手”。
【讨论】:
第一张图片中显示的错误消息是针对 .Net 异常显示的消息。 (任何继承自 System.Exception 的东西)
.Net 异常类的成员包括可以很好地显示的数据和堆栈跟踪,Visual Studio IDE 会为您显示。
本机错误(来自本机代码或 Windows 代码,不是 .Net 的任何内容)与第二个窗口一起显示。
包含最小what() 字符串的本机异常。有时。但是也可以抛出任何其他类类型,因此并不总是有那么多信息。
【讨论】: