Drop into PDB style post-mortem debugging.

When using PDB debugger - during exception PDB triggers a post-mortem debugging session. This session is useful because this allows live program state inspection.

Is it possible PyCharm debugger to drop into PDB style post-mortem debugging? Or use PDB instead of PyCharm debugger so that happens implicitly?

0

I stumbled upon this feature a few weeks ago.

First, make sure Run > View Breakpoints > Under ‘Python Exception Breakpoint’ > ‘Any exception’ is checked.

Now a debug session will trigger at the location of exception raised. It will break even if there is not user specified breakpoint.

0

请先登录再写评论。