================
@@ -65,6 +65,19 @@ 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",
+ "program": "/tmp/a.out",
+ "pid": "${command:PickProcess}"
----------------
matthewbastien wrote:
That's a nice feature to have. I've added logic to the
`LLDBDapConfigurationProvider` that will set `pid` to
`"${command:pickProcess}"` if neither `pid` nor `program` are specified in an
`attach` request.
https://github.com/llvm/llvm-project/pull/128943
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits