Skip to content

Commit 6060589

Browse files
committed
docs/debugging.md: add FAQ section
The behavior for editing breakpoints while the program is running has changed. Explicitly mention this in the documentation. Change-Id: Ib3eefd7c6534e637d7d54e3f7b74862f5d163eab Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/340991 Trust: Suzy Mueller <suzmue@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
1 parent 6a6fdb6 commit 6060589

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/debugging.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@ $ dlv-dap dap --listen=:12345 --log --log-output=dap
423423
}
424424
```
425425

426+
## FAQs
427+
428+
### Why does my debug session stop when I set breakpoints?
429+
430+
To support being able to set breakpoints while the program is running, the debug adapter needs to stop the program. Due to the extra synchronization required to correctly resume the program, the debug adapter currently sends a stopped event. This means that if you are editing breakpoints while the program is running, you will need to hit continue to continue your debug session. We plan to change the behavior of the debug adapter for more seamless editing of breakpoints. You can track the progress [here](https://github.com/golang/vscode-go/issues/1676).
431+
426432
[Delve]: https://github.com/go-delve/delve
427433
[VS Code variables]: https://code.visualstudio.com/docs/editor/variables-reference
428434
[snippets]: https://code.visualstudio.com/docs/editor/userdefinedsnippets

0 commit comments

Comments
 (0)