================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits