简体   繁体   English

如何找到 System.ExecutionEngineException 异常的来源

[英]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.

相关问题 读取 Azure 密钥保管库会引发异常:System.ExecutionEngineException:“引发了‘System.ExecutionEngineException’类型的异常。” - Reading Azure key vault throws exception: System.ExecutionEngineException: 'Exception of type 'System.ExecutionEngineException' was thrown.' XXX.exe中发生了未处理的“System.ExecutionEngineException”类型异常 - An unhandled exception of type 'System.ExecutionEngineException' occurred in XXX.exe DirectWriteForwarder.dll 中发生异常“System.ExecutionEngineException” - Exception 'System.ExecutionEngineException' occurred in DirectWriteForwarder.dll 给定System.ExecutionEngineException的GetMessage() - GetMessage() given an System.ExecutionEngineException 抛出System.ExecutionEngineException - System.ExecutionEngineException being thrown DBContext 构造函数中的 System.ExecutionEngineException - System.ExecutionEngineException in DBContext Constructor Windows服务的System.ExecutionEngineException - System.ExecutionEngineException With Windows Service Windows 10设备上的System.ExecutionEngineException - System.ExecutionEngineException on Windows 10 device 仅在调试时才发生System.ExecutionEngineException - System.ExecutionEngineException only when debugging 为什么此代码抛出System.ExecutionEngineException - Why this code throws System.ExecutionEngineException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM