Add `attach` command to pdb
@pablogsal is already working on this.
Since May 22, 2025.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
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
- gh-133954
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.