Skip to content

Add attach command to pdb #133953

Open
Open
@gaogaotiantian

Description

@gaogaotiantian

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

Metadata

Metadata

Labels

stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Add `attach` command to pdb · Issue #133953 · python/cpython

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant