You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-05-31.12:51:09.421>created_at=<Date2013-02-12.10:47:37.091>labels= ['type-bug']
title='pdb list shows unexpected code when stack frame includes a try / finally block'updated_at=<Date2020-05-31.12:51:09.420>user='https://bugs.python.org/AbramClark'
The list command in pdb shows an unexpected portion of code after an up command enters a try / finally block in the call stack.
To reproduce:
pdb pdb_list_bug_reproduce.py
c
up
list
Expected behavior: Show 11 lines around line 8, "throw_something()", which was the entry point to the lower stack frame.
Actual behavior: Shows code centered around line 10, in the finally block, which is likely cleanup code that has nothing to do with the exception thrown.
This is fixed in python 3.2 by changeset 670d4cbf1464, and indeed the
'>>' marker is shown at line 8 of pdb_list_bug_reproduce.py when
debugging this (modified for py3) script with python 3.2.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: