Skip to main content

Interactive terminal for inspecting the running state of a python program

Project description

Python has a great debugger in pdb, but sometimes you only want to inspect and buck about with the state. The pdb REPL is a bit inconvenient for that, so here’s a different approach. Instead of

import pdb pdb.set_trace()

Just do

import debugme

This starts an interactive interpreter and exits the program when the interpreter ends. If you want to continue, run this in that interpreter

debugme.exit = False

The variables available in the interactive interpreter are the locals and globals of the frame you imported debugme from.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

debugme-1.0.tar.gz (1.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page