pudb icon indicating copy to clipboard operation
pudb copied to clipboard

Fix crash when expanding variables in post-mortem

Open qhuy4119 opened this issue 4 years ago • 1 comments

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

qhuy4119 avatar Jul 14 '21 03:07 qhuy4119

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.

inducer avatar Jul 20 '21 14:07 inducer