Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1 KB

README.md

File metadata and controls

33 lines (26 loc) · 1 KB

adhoc-pdb

Build Status codecov Code style: black PyPI version

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.

Install

pip install adhoc-pdb (or pip install adhoc-pdb[cli] to get a nice CLI)

For development, clone this repo and run make.

Usage

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