Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143874: Fix pdb expression output leaking to debuggee stdoutpython/cpython#143881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@shreyadesai20042009
Copy link

@shreyadesai20042009shreyadesai20042009 commentedJan 15, 2026
edited by johnslavik
Loading

Fixes issue#143874

Problem

In remote or dual-terminal debugging setups, expressions evaluated at the pdb
prompt printed their results to the debuggee's stdout instead of the debugger
output stream.

Cause

In remote pdb mode, expression results were printed directly usingprint(),
bypassing pdb’s output redirection mechanism.

Fix

Route expression output throughself.message() so results are sent through the
appropriate pdb output stream, including the socket-based remote debugger.

Tests

Added regression tests to ensure expression evaluation output is correctly routed
in remote pdb sessions.

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@python-cla-bot
Copy link

python-cla-botbot commentedJan 15, 2026
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@johnslavikjohnslavik changed the titleFix pdb expression output leaking to debuggee stdoutpython/cpythongh-143874: Fix pdb expression output leaking to debuggee stdoutpython/cpythonJan 20, 2026
@johnslavik
Copy link
Member

Thank you for your time and effort preparing the patch. This time, we've already merged a fix to this issue --#143875 -- I'll close this for you.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gaogaotiantiangaogaotiantianAwaiting requested review from gaogaotiantiangaogaotiantian is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@shreyadesai20042009@johnslavik

[8]ページ先頭

©2009-2026 Movatter.jp