Skip to content

Commit d4c81e1

Browse files
update README with more info about the 'program' property
1 parent 6f40eb3 commit d4c81e1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lldb/tools/lldb-dap/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,23 @@ This will attach to a process `a.out` whose process ID is 123:
6565
}
6666
```
6767

68-
You can also use the variable substituion `${command:pickProcess}` to select a
68+
You can also use the variable substitution `${command:pickProcess}` to select a
6969
process at the start of the debug session instead of setting the pid manually:
7070

7171
```javascript
7272
{
7373
"type": "lldb-dap",
7474
"request": "attach",
7575
"name": "Attach to PID",
76-
"pid": "${command:pickProcess}"
76+
"pid": "${command:pickProcess}",
77+
"program": "/path/to/program"
7778
}
7879
```
7980

81+
Note: The `program` path above is optional. If specified, `pickProcess` will
82+
filter the list of available process based on the full program path. If absent,
83+
`pickProcess` will offer a list of all processes running on the system.
84+
8085
#### Attach by Name
8186

8287
This will attach to an existing process whose base

0 commit comments

Comments
 (0)