File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
6969process 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
8287This will attach to an existing process whose base
You can’t perform that action at this time.
0 commit comments