inducer / pudb

Full-screen console debugger for Python
https://documen.tician.de/pudb/
Other
2.99k stars 230 forks source link

Fix crash when expanding variables in post-mortem #465

Open qhuy4119 opened 3 years ago

qhuy4119 commented 3 years ago

Currently, Debugger.stack will be empty when entering post-mortem, leading to IndexError when user tries to expand variables in the Variables window. This commit fixes that by restoring Debugger.bottom_frame to Debugger.stack.

fixes #233

inducer commented 3 years ago

This actually isn't right. Post-mortem mode also kicks in if the debuggee runs into an exception. Your proposed change appears to break inspecting the stack in that situation.