Skip to content

Python Debugger panel shows subprocess PIDs in non-sequential or random order #1966

@BitCalSaul

Description

@BitCalSaul

🐛 Description

When debugging a Python program that spawns multiple subprocesses (for example, via multiprocessing or subprocess), the Python Debugger panel in VS Code displays all the process PIDs, but they are not listed in a logical or numerical order.

This makes it confusing to identify which PID corresponds to which child process — especially when processes are frequently spawned and terminated during runtime.

💡 Expected Behavior

The debugger panel should display the process list sorted by PID (ascending) or at least in a consistent, deterministic order — e.g., parent process first, followed by subprocesses.

🧩 Actual Behavior

Process PIDs appear in seemingly random order in the panel each time a new process attaches.

Image

The version is Python Debugger extension (ms-python.debugpy) | 2025.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions