A simple tool that allows you to debug your system whenever you want, with no overhead, even in production!
Tested on linux and OSX, should on any POSIX compliant system.
Supports python>=2.7,>=3.5
.
pip install adhoc-pdb
(or pip install adhoc-pdb[cli]
to get a nice CLI)
For development, clone this repo and run make
.
In your code:
import adhoc_pdb
adhoc_pdb.install()
Debug using adhoc-pdb cli:
adhoc-pdb <pid>
or using pure shell:
kill -SIGUSR1 <pid>
telnet localhost 9999