1 Star 0 Fork 0

wangkechun/vscode-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wkc/vscode-go.git
git@gitee.com:wkc/vscode-go.git
wkc
vscode-go
vscode-go
master

搜索帮助