Skip to content

Refresh processes in process picker #2885

@mbise1993

Description

@mbise1993

Type: Debugger

I've run into a scenario in which I need to launch a process, wait for that process to launch a subprocess, then attach to the subprocess in order to debug it. In an attempt to make this as convenient as possible, I'm using a compound configuration in my launch.json file to invoke both the launch config for the first process and the attach config for the subprocess. The first process writes the PID of the subprocess to the terminal, which I planned to use in the process picker to quickly select and attach to the subprocess. However, I've noticed that once the process picker is open, is doesn't update with newly created processes. I propose that the process picker either automatically check for new process at a certain interval or offer a refresh button so the user can refresh the list.

If this is seems like a useful feature, I would be happy to look into implementing it. Or, if you have any other suggestions for how to accomplish what I'm trying to do, that would be even better!

Describe the bug

  • OS and Version: OSX Mojave (10.14.1)
  • VS Code Version: 1.29.1
  • C/C++ Extension Version: 0.20.1
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

To Reproduce

  1. Create a launch configuration with "request": "attach" and "processId": "${command:pickProcess}"
  2. Invoke the launch configuration
  3. Start a new process
  4. Search for the new process in the process picker

Additional context

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