Is there a way to attach a debugger to a multi-threaded Python process?

前端 未结 9 2176
日久生厌
日久生厌 2020-12-13 18:49

I\'m trying to debug a deadlock in a multi-threaded Python application after it has locked up. Is there a way to attach a debugger to inspect the state of the process?

9条回答
  •  [愿得一人]
    2020-12-13 19:16

    PyCharm IDE allows attaching to a running Python process since version 4.0.

    Here is described how to do that.

提交回复
热议问题