Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
saagarjha
· 6y ago · 0 comments
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?
Comments
[–]
jessedhillon
6y ago
Sibling comment suggests Pyrasite for this:
https://github.com/lmacken/pyrasite
[–]
walty8
6y ago
may be python pdb?
https://docs.python.org/3/library/pdb.html
[–]
saagarjha
OP
6y ago
Can I somehow give that a PID so it can inject a set_trace or whatever in the current context?