3 ms·
When debugging compiled code, I often attach a debugger to the process after it’s started to introspect it. I’ve often wanted to do something similar in Python;
by saagarjha 6y ago
When debugging compiled code, I often attach a debugger to the process after it’s started to introspect it. I’ve often wanted to do something similar in Python; does anyone know of a tool that might do something like this?
- jessedhillon 6y agoSibling comment suggests Pyrasite for this: https://github.com/lmacken/pyrasite https://github.com/lmacken/pyrasite
- walty8 6y agomay be python pdb? https://docs.python.org/3/library/pdb.html https://docs.python.org/3/library/pdb.html
- saagarjha 6y agoCan I somehow give that a PID so it can inject a set_trace or whatever in the current context?