3 ms·
This is worth a read just for the explanation of how to get an interactive python shell connected to a running script.
by im3w1l 10y ago
This is worth a read just for the explanation of how to get an interactive python shell connected to a running script.
- colanderman 10y agoTo save everyone a click: https://pypi.python.org/pypi/pyrasite/ https://pypi.python.org/pypi/pyrasite/ Wish I'd known about that years ago just for the ability to grab a call stack from a running program.
- cyphar 10y agoFor those wondering how it works, it's basically just a wrapper around gdb which calls the internal C exec implementation in the Python interpreter (which then executes some other script file which you specify). Pretty cool.