Is there a way on Linux to check what a running Python daemon process is doing? That is, without instrumenting the code and without terminating it? Preferably I\'d like to get t
You can use madbg (by me). It is a python debugger that allows you to attach to a running python program and debug it in your current terminal. It is similar to pyrasite
and pyringe
, but newer, doesn't require gdb, and uses IPython
for the debugger (which means colors and autocomplete).
To see the stack trace of a running program, you could run:
madbg attach
And in the debugger shell, enter:
bt