Post mortem debugging #12096
Unanswered
Michael-Jhatro
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A great feature of python is the post mortem debugging offered by the pdb module. In jupyter labs after you run a cell that throws an error you can call pdb.pm() it will open a dialogue to use the debugger in interactive mode which makes pinpointing the bug very efficient. This works even without running the cell in debugging mode first.
While this is doable in vs code, the interface for pdb in interactive mode is clunky and seems to glitch often.
I have two questions (an answer to either would be awesome!):
Is there a way to make the interactive mode for pdb less painful?
Is there a way to invoke the vs code debugger in a similar way (after a cell has thrown an exception, but without running the cell in debugging mode)
Thank you!
Best,
Michael
Beta Was this translation helpful? Give feedback.
All reactions