2 ms·
For Python, you can just use Pyrasite (https://github.com/lmacken/pyrasite https://github.com/lmacken/pyrasite) and inject a script which prints a stack trace f
by eeZi 10y ago
For Python, you can just use Pyrasite (https://github.com/lmacken/pyrasite https://github.com/lmacken/pyrasite) and inject a script which prints a stack trace for all threads.
I've done this to debug OpenStack in the past and it worked very well. There are many similar projects for Python, I used this one since it's in the RHEL repo.
Useful summary on StackOverflow: https://stackoverflow.com/questions/4163964/python-is-it-possible-to-attach-a-console-into-a-running-process https://stackoverflow.com/questions/4163964/python-is-it-pos...