{"id":15014684,"url":"https://github.com/kwang2049/crash-ipdb","last_synced_at":"2026-01-04T13:52:20.717Z","repository":{"id":62565243,"uuid":"439160173","full_name":"kwang2049/crash-ipdb","owner":"kwang2049","description":"Debug Python crashes conveniently: Whenever a Python code crashes, the ipdb debugger will be triggered.","archived":false,"fork":false,"pushed_at":"2022-10-14T22:15:35.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T01:40:59.543Z","etag":null,"topics":["debugger","ipdb","ipython","pdb","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kwang2049.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-17T00:05:04.000Z","updated_at":"2023-09-27T14:08:47.000Z","dependencies_parsed_at":"2022-11-03T16:31:45.954Z","dependency_job_id":null,"html_url":"https://github.com/kwang2049/crash-ipdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwang2049%2Fcrash-ipdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwang2049%2Fcrash-ipdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwang2049%2Fcrash-ipdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwang2049%2Fcrash-ipdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwang2049","download_url":"https://codeload.github.com/kwang2049/crash-ipdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244807719,"owners_count":20513694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugger","ipdb","ipython","pdb","python"],"created_at":"2024-09-24T19:45:57.661Z","updated_at":"2026-01-04T13:52:20.690Z","avatar_url":"https://github.com/kwang2049.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crash-ipdb\nDebug Python crashes conveniently: Whenever a Python code crashes, the [ipdb](https://github.com/gotcha/ipdb) (IPython debugger) debugger will be triggered. And the [pdb](https://docs.python.org/3/library/pdb.html) commands can be used to debug your crash.\n\n## Usage\nFirst install it with:\n```bash\npip install crash-ipdb\n```\nThen import `crash_ipdb` in your Python and run your code as usual ([./example.py](example.py)):\n```python\nimport crash_ipdb  # just import crash_ipdb in your Python code\n\n## simple example of source code to be debugged ##\nx = 1\ny = 0\n\nprint(x/y)  # When you see '----\u003e 7 print(x/y)', this will mean you have entered the ipdb, stopping at this line\n```\nYou will find you have entered into ipdb and can use the [pdb commands](https://docs.python.org/3/library/pdb.html) to debug your code:\n```bash\nTraceback (most recent call last):\n  File \"example.py\", line 7, in \u003cmodule\u003e\n    print(x/y)  # When you see '----\u003e 7 print(x/y)', this will mean you have entered the ipdb, stopping at this line\nZeroDivisionError: division by zero\n\n\u003e /home/ukp/kwang/crash-ipdb/crash-ipdb/example.py(7)\u003cmodule\u003e()\n      3 ## simple example of source code to be debugged ##\n      4 x = 1\n      5 y = 0\n      6 \n----\u003e 7 print(x/y)  # When you see '----\u003e 7 print(x/y)', this will mean you have entered the ipdb, stopping at this line\n```\n\n## Reference\n[xcodebuild/crash_on_ipy.py](https://gist.github.com/xcodebuild/3fef2c1e6eb109a91977)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwang2049%2Fcrash-ipdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwang2049%2Fcrash-ipdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwang2049%2Fcrash-ipdb/lists"}