Visual Studio Express中的堆栈跟踪 [英] Stack trace in visual studio express

查看:108
本文介绍了Visual Studio Express中的堆栈跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010 Express开发WPF应用程序。我有一个运行在 WindowsFormsHost 内的WinForm组件,该组件显然包含一个错误。控制台中打印出的唯一错误消息是

I'm working on a WPF application with Visual Studio 2010 Express. I have a WinForm component running inside a WindowsFormsHost, that apparently contains an error. The only error message that is printed out in the console is


Eine Ausnahme(erste Chance)des Typs System.Collections.Generic.KeyNotFoundException mscorlib.dll aufgetreten中的

ist。

Eine Ausnahme (erste Chance) des Typs "System.Collections.Generic.KeyNotFoundException"
ist in mscorlib.dll aufgetreten.

(我使用的是德语版本)。它不会打印出堆栈跟踪,也不会告诉我错误发生在哪一行。我可以通过调试整个代码来找到错误,无论如何,有时我只想查看堆栈跟踪以更快地解决问题。

(I'm using the German version). It does not print out a stack trace, nor does it tell me on which line the error occured. I can find the error by debugging through the whole code, anyhow sometimes I just want to see the stack trace to resolve the problem quicker.

我该怎么做?

推荐答案

启用异常:调试->例外情况

Enable Exceptions : Debug-> Exceptions

编辑

查看此内容,并注明相关部分:

Check this out, express related section:

http://msdn.microsoft.com/zh- us / library / 038tzxdw.aspx

致谢

这篇关于Visual Studio Express中的堆栈跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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