Skip to main content

Switch from print to debugger() and never look back!

Project description

Switch from print to debugger() and never look back.

Import this module in your main file to add debugger as a builtin command.

Calling debugger opens the ipdb debugger,

import debug
debugger() # <-- breaks here

Using debug.wrap sets a function breakpoint,

def function(): # <-- breaks here
    pass

def example():
    function()

function = debug.wrap(function)
example()

Installation

To install this package, run

pip install print-considered-harmful

Contributing

Bug reports and pull requests are welcome on github at, https://github.com/akuhn/print-considered-harmful

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

print-considered-harmful-1.1.0.tar.gz (1.3 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