“核心转储” Python脚本的类似物?
说,我的脚本在服务器上运行,并且在某个时间的时间失败。
除了日志中的错误消息 - 我想在服务器端上有一些映像文件 - 在故障时表示Python进程的状态。
然后,我可以将其移至本地机器,加载到调试器中,检查呼叫堆栈以及什么功能中的数据真正导致例外。
有办法做到吗?
Say, my script runs on server and has failed at some moment of time.
Except for the error messages in the logs - I would like to have some image file on server side - representing the state of python process in the moment of failure.
I would be able then to move it to my local machine, load into debugger, examine the call stack and what data in what function did really cause the exception.
Is there a way to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论