[Lldb-commits] [lldb] [lldb-dap] Add process picker command to VS Code extension (PR #128943)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 6 14:49:28 PST 2025
================
@@ -65,6 +65,18 @@ This will attach to a process `a.out` whose process ID is 123:
}
```
+You can also use the variable substituion `${command:pickProcess}` to select a
+process at the start of the debug session instead of setting the pid manually:
+
+```javascript
+{
+ "type": "lldb-dap",
+ "request": "attach",
+ "name": "Attach to PID",
+ "pid": "${command:pickProcess}"
+}
+```
+
----------------
vogelsgesang wrote:
We might also want to document the behavior in combination with `program`.
(Don't actually remove the three backticks, as in the suggestion below. There seems to be no way to have three backticks in a code suggestion on Github)
```suggestion
"program": "/path/to/executable"
"pid": "${command:pickProcess}"
}
The `program` name above is optional. If specified, `pickProcess` will filter the list of available process based on the program name. If absent, `pickProcess` will offer a list of all processes running on the system.
```
https://github.com/llvm/llvm-project/pull/128943
More information about the lldb-commits
mailing list