Skip to main content

Alternative Python debugger using prompt-toolkit.

Project description

Botfly

An enhanced debugger that uses prompt-toolkit.

Since prompt-toolkit is a cross-platform readline replacement it should work on all platforms.

You can also import the botfly.debugger module in your code and call the post_mortem function, as with pdb.

Some notable features:

  • Colorized UI - stacktrace, prompt, etc.
  • More informative reports, prompt shows current position in stack.
  • Invoke your editor at current point.
  • REPL-like evaluator
  • Enter sub-REPL if desired.
  • Display opcodes.
  • Switch to different stack in context or cause exceptions.
  • Debug co-routines.

Automatic Debugging

Don't like those annoying uncaught exceptions? Just put the following in your code (during development) to automatically enter the debugger in the event of an uncaught exception.

from botfly import debugger

debugger.autodebug()

...

Then if an exception happens that isn't handled you will see the debugger.

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

botfly-0.8.0.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

botfly-0.8.0-py3-none-any.whl (80.6 kB view details)

Uploaded Python 3

File details

Details for the file botfly-0.8.0.tar.gz.

File metadata

  • Download URL: botfly-0.8.0.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for botfly-0.8.0.tar.gz
Algorithm Hash digest
SHA256 60f316a9c5ddad84ca49bcc0f1c0eb2dc294d41552ae44e8db29589f5411e1b4
MD5 8103903a772ec3bc3047864fbde8a7f0
BLAKE2b-256 746378079ff50efcaeaac9cb8f177ad6a9cb5d9a81bd7b5ff4d7c45c9aba6955

See more details on using hashes here.

File details

Details for the file botfly-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: botfly-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 80.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for botfly-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fce93dfd20bd016fd40fa335906f51b69dbd59ddd802cb50f52d9638553065dd
MD5 e832746129cdb10a1f7da874ac1e83fd
BLAKE2b-256 dc2ca45ce798472c6ce5bd8cdc9aa823fd7de0bafd1bb218e4ff39a0f373e7f6

See more details on using hashes here.

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