Published on

Remote debug golang in vscode

Authors
  • avatar
    Name
    fengqi
    Twitter

remote

git clone https://github.com/fengqi-dev/golang-remote-debug-code.git
cd golang-remote-debug-code
bash run-debug-server.sh

You will got like this

alt text

local

git clone https://github.com/fengqi-dev/golang-remote-debug-code.git
cd golang-remote-debug-code

Add remote gen to .vscode/launch.json

alt text

Add some breakpoint

alt text

Press F5 to debug

alt text