Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically choose PID to attach #402

Open
v-lopez opened this issue Jun 13, 2023 · 2 comments
Open

Dynamically choose PID to attach #402

v-lopez opened this issue Jun 13, 2023 · 2 comments

Comments

@v-lopez
Copy link

v-lopez commented Jun 13, 2023

When attaching to an application, having to set manually the PID on the launch.json breaks quite a bit the flow.

Would it be possible to use the ${command:pickProcess} as is done on the default C++ debugger?

@GitMensch
Copy link
Collaborator

Ideally: also provide an optional filter to the command (that would allow to specify [part of] the application name or even better [part of] the cmd [= arguments passed] along with the command / user) that would make it much easier to choose the right process, not "one of the three interesting of the thousand processes running on that server".

@Hovhannes-M
Copy link

{
"version": "0.2.0",
"configurations": [
{
"name": "COBOL debugger attach",
"type": "gdb",
"request": "attach",
"target": "${input:pid}",
"valuesFormatting": "parseText",
"showDevDebugOutput": false,
"printCalls": false,
"debugger_args": []
}
],
"inputs": [
{
"id": "pid",
"type": "promptString",
"description": "PID to attach"
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants