Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1004 Bytes

Readme.md

File metadata and controls

12 lines (8 loc) · 1004 Bytes

Go Debug Adapter

This code runs in a seperate Node process spawned by Code when launch the 'go' type in the Code debugger.

Debugging the debugger

The ideal setup involves three instances of Code:

  1. Open the vscode-go folder in one instance. Choose the Launch Extension debug target and hit F5 to launch a second instance.
  2. In the second instance, open the Go application you'd like to test against. In that instance, create a new Go debug target pointing at the program you want to debug, and add "debugServer": 4711 in the root of the configuration.
  3. Open another instance of Code on the vscode-go/src/debugAdapter folder. In that instance hit F5 to launch the debug adapter in server mode under the debugger.
  4. Go back to the second instance and hit F5 to debug your Go code. Debuggers from the other two Code windows are attached to the Go debug adapter and the Go language integation respectively, so you can set breakpoints, step through code and inspect state as needed.