“核心转储” Python脚本的类似物?

发布于 2025-01-27 01:03:49 字数 160 浏览 1 评论 0原文

说,我的脚本在服务器上运行,并且在某个时间的时间失败。

除了日志中的错误消息 - 我想在服务器端上有一些映像文件 - 在故障时表示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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文