Skip to main content

Debugging with print statements, but better!

Project description

WTF is a Python library that tries to help you understand where things came from. It’s intended for manual tracing of executing programs. Anywhere one would otherwise be using print statetments, one can instead use wtf statements.

Simply calling wft() defaults to printing the name of the current function and wtf line number and the function names and line numbers of the previous four stack frames.

You can configure where output gets written to, how many stack frames to examine, and whether or not to inspect variable declarations as it walks up the stack.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page