Skip to main content

crash-ipdb

Debug Python crashes conveniently: Whenever a Python code crashes, the ipdb (IPython debugger) debugger will be triggered. And the pdb commands can be used to debug your crash.

Usage

First install it with:

pip install crash-ipdb

Then import crash_ipdb in your Python and run your code as usual (./example.py):

import crash_ipdb  # just import crash_ipdb in your Python code

## simple example of source code to be debugged ##
x = 1
y = 0

print(x/y)  # When you see '----> 7 print(x/y)', this will mean you have entered the ipdb, stopping at this line

You will find you have entered into ipdb and can use the pdb commands to debug your code:

Traceback (most recent call last):
  File "example.py", line 7, in <module>
    print(x/y)  # When you see '----> 7 print(x/y)', this will mean you have entered the ipdb, stopping at this line
ZeroDivisionError: division by zero

> /home/ukp/kwang/crash-ipdb/crash-ipdb/example.py(7)<module>()
      3 ## simple example of source code to be debugged ##
      4 x = 1
      5 y = 0
      6 
----> 7 print(x/y)  # When you see '----> 7 print(x/y)', this will mean you have entered the ipdb, stopping at this line

Reference

xcodebuild/crash_on_ipy.py

Metadata

Release files for crash-ipdb 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crash-ipdb 0.0.4
File Size Uploaded
crash-ipdb-0.0.4.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crash-ipdb 0.0.4
File Interpreter ABI Platform
crash_ipdb-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / crash-ipdb-0.0.4.tar.gz

Download URL crash-ipdb-0.0.4.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
06df97727708de9521e5c88415101cba7c191849988749d504abf9454a361131
BLAKE2b-256 checksum
How to use checksums
53191135d546ec46f231432c9a4f5965971900db44ba47a3380de4e0be4d2458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / crash_ipdb-0.0.4-py3-none-any.whl

Download URL crash_ipdb-0.0.4-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6eea70c8fc704b734fdfdd3704c0c35b33dc300d992165ae8bd94b89dd58f1f
BLAKE2b-256 checksum
How to use checksums
09aa5cda9c4fdd53872cd45185871cd271d9bf9038886de4f78d88f00637efc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page