Skip to main content
100%

ipdb launch on exception

✓ Published0🌍 Public
WWilliamQLiu
Last edited Mar 23, 2018
Created on Mar 23, 2018

The example shows how to automatically launch an interactive debugging session whenever an unhandled exception occurs in Python code. It demonstrates the use of `slaunch_ipdb_on_exception` from the `ipdb` library, which wraps a `with` block to intercept exceptions and drop into the IPython debugger at the point of failure. The code snippet is minimal, containing only the import and context manager entry, with no additional logic or data, highlighting the setup required to enable exception-triggered debugging.

AI-generated description

Similar vizzes