开发者

Creating a minidump in a Python application (Windows)

开发者 https://www.devze.com 2023-04-04 19:41 出处:网络
I\'m working on a Python application. Sometimes the interpreter crashes when in a third party C++ DLL.

I'm working on a Python application. Sometimes the interpreter crashes when in a third party C++ DLL.

I'm thinking about writing a Python extension that installs a handler for unha开发者_Go百科ndled structured exceptions (Windows) in order to write a minidump to the disk and log the stack trace of every Python thread.

Two questions:

  1. Does a Python extension with a similar purpose already exist? According to my own Google search, nothing seems to be publicly available, but maybe I didn't search enough.

  2. Is it feasible to implement something like this? (I'm experienced in C++ and Windows programming, but have never implemented a Python extension...)


Check out FaultHandler on PyPI.


I recently wanted to do the same thing and created minidumper to do so, and did a small write-up of it here.

0

精彩评论

暂无评论...
验证码 换一张
取 消