Skip to content

Commit 7f41d5c

Browse files
authored
Update DEVDOC.md for delve (#3720)
Add an example of delve command for remote debugging in VSCode. Bug: N/A
1 parent 0f59853 commit 7f41d5c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

DEVDOC.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,17 @@ To use the delve debugger for Go with VSCode to debug `gapis`. These steps can b
157157
...
158158
}
159159
```
160-
A sample `<host>` can be `127.0.0.1` and `<port>` can be `1234`.
160+
As an example, `<host>` could be `127.0.0.1` and `<port>` could be `1234`.
161161

162162
4. Start delve in headless mode at gapid check-in folder.
163163
```
164164
dlv exec --headless --listen=<host>:<port> --api-version 2 ./bazel-bin/pkg/gapis -- <gapis-arguments>
165165
```
166166

167-
This will allow using port `1234` (or any other preferred port) to connect to delve from VSCode.
167+
The command below will allow using port `1234` (or any other preferred port) to connect to delve from VSCode.
168+
```
169+
dlv exec --headless --listen=127.0.0.1:1234 --api-version 2 ./bazel-bin/pkg/gapis -- -persist -rpc localhost:8888
170+
```
168171

169172
5. Start debugging with `Debug->Start Debugging` (on Linux with `F5`) and make sure `Attach to Delve` is selected as the launch configuration.
170173

0 commit comments

Comments
 (0)