Skip to content

gh-160643: Reset Bdb.enterframe when trace dispatch raises - #160644

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:gh-160643-bdb-enterframe
Open

tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:gh-160643-bdb-enterframe

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Bdb.set_enterframe() now resets enterframe in a finally block, so an exception escaping trace_dispatch(), such as BdbQuit after q in the interactive interpreter, no longer leaves it set and makes later breakpoint() calls return without stopping.

An exception escaping trace_dispatch(), such as BdbQuit after q in the
interactive interpreter, left enterframe set, so every later
breakpoint() returned early. Reset it in a finally block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant