Skip to content

Add attach command to pdb #133953

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gaogaotiantian opened this issue May 12, 2025 · 0 comments
Open

Add attach command to pdb #133953

gaogaotiantian opened this issue May 12, 2025 · 0 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@gaogaotiantian
Copy link
Member

gaogaotiantian commented May 12, 2025

Feature or enhancement

Proposal:

In 3.14, we can do python -m pdb -p 1234 to attach to a certain process, that's great, but not the end. We should be able to attach to a process while debugging. It's very common when we need to take a look at the status of a subprocess while we are debugging, and attach process from pdb would be an important addition. Sure you can open another terminal and attach from there, but why bother when we can just do it from the existing terminal?

Unfortunately, this won't make 3.14 so see you in 3.15.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@gaogaotiantian gaogaotiantian added the type-feature A feature request or enhancement label May 12, 2025
@picnixz picnixz added the stdlib Python modules in the Lib dir label May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants