如何打印 StackOverflowException 的堆栈跟踪
我正在开发一个 .Net 2.0 应用程序,其中发生 StackOverflowException。有没有办法在应用程序中止之前/期间打印/记录堆栈跟踪? 这是一个长时间运行的服务器端进程,很难在调试器下执行。 我知道 StackOverflowException 无法被捕获。
I am developing a .Net 2.0 application in which a StackOverflowException occurs. Is there a way to print/log the stack trace before/during the application aborts?
This is a long running server-side process which would be hard to execute under a debugger.
I know that StackOverflowException can not be caught.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 ADPlus(来自 Windows 调试工具)在崩溃时强制转储。
例如
Use ADPlus (from Windows Debugging Tools) to force a dump on crash.
E.g.