[英]How to find source of System.ExecutionEngineException Exception
I have a very large application.我有一个非常大的应用程序。 And my application throw System.ExecutionEngineException sometimes and I cant find source of this Exception.
而且我的应用程序有时会抛出 System.ExecutionEngineException,我找不到此异常的来源。 Is there any way find it?
有什么办法找到吗?
Use WinDBG.使用 WinDBG。 For this kind of errors it will give you much more information.
对于这种错误,它将为您提供更多信息。
Download and Install Debugging Tools for Windows下载并安装 Windows 的调试工具
You can download previous versions so you don0t need to download the full DDK.您可以下载以前的版本,因此您不需要下载完整的 DDK。
If you want to catch error on live system, you can add logger to your application and write method name/line/other information about where the error occurs into the log(this will certainly work in debug mode).如果您想在实时系统上捕获错误,您可以将记录器添加到您的应用程序中,并将有关错误发生位置的方法名称/行/其他信息写入日志(这肯定会在调试模式下工作)。 Its not that hard to add such thing even into large project.
即使在大型项目中添加这样的东西也不难。 See http://nlog-project.org/ or http://msdn.microsoft.com/en-us/library/ff664569(v=PandP.50).aspx or smth else.
请参阅http://nlog-project.org/或http://msdn.microsoft.com/en-us/library/ff664569(v=PandP.50).aspx或其他。 If the system is not live-you can catch error with debug.
如果系统未运行,您可以通过调试捕获错误。 Do it step-by-step(use F10, F11 in Visual Studio) and you will find it for sure!
一步一步做(在 Visual Studio 中使用 F10、F11),你肯定会找到它!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.