Skip to content

name filter for process picker #847

Open

Description

@ThomasNygards

Hi!

When I use

    {
        "name": "Python Debugger: Attach using Process Id",
        "type": "debugpy",
        "request": "attach",
        "processId": "${command:pickProcess}",
        "justMyCode": false,
    },

I get a list of all (?) processes on my computer that I can attach to. A lot of them, at least.

Typically, I attach to the same process name (but different path due to parallel builds)
Could we add for example a property like below to only list items matching path (or regex ?) below to pick from?

"processNameFilter":"*/build/myproc.exe"

Regards
Thomas

Activity

  1. ZA139 commented on Oct 28, 2025

    @ZA139
    Contributor

    As I know, we can filter processes by name in processes picker window. Does this satisfied your needs? Or u prefer a "preProcessesNameFilter"
    Image

  2. ThomasNygards commented on Oct 28, 2025

    @ThomasNygards
    Author

    As I know, we can filter processes by name in processes picker window. Does this satisfied your needs? Or u prefer a "preProcessesNameFilter" Image

    That is a good feature and it is helpful!
    But I have to type every time, so if it can be avoided, it would save me some time.

  3. ZA139 commented on Oct 28, 2025

    @ZA139
    Contributor

    As I know, we can filter processes by name in processes picker window. Does this satisfied your needs? Or u prefer a "preProcessesNameFilter" Image

    That is a good feature and it is helpful! But I have to type every time, so if it can be avoided, it would save me some time.

    Yep, Sounds the "preProcessesNameFilter" is a reasonable choice. Waiting for ms guys review this. I think I can develop this if they think it's good.

  4. github-actions commented on Oct 29, 2025

    @github-actions

    Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions