Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python thread dump

Tags:

python

Is there a way to get a thread dump from a running Python process? Similar to kill -3 on a Java process.

like image 256
oneself Avatar asked Aug 19 '09 22:08

oneself


1 Answers

I havent seen anything built-in, but I have seen a solution here which can be exposed via http console. The solution iterates over all threads and outputs the stack.

like image 81
akf Avatar answered Sep 23 '22 22:09

akf