code-server:参考vs-code官方相关文档

https://code.visualstudio.com/docs/languages/go#_debugging

1.go调试

docker rm -f g3; docker run -itd --name g3 -v ~/workdir/coder-server/code:/code -p 8080:8080 cffycls/webide-debian:go-php-python-v1.2
  • 初始化 init.sh

访问 http://127.0.0.1:8080/,设置环境变量,安装delve工具

#!/bin/bash

mkdir -p $HOME/.go
export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export GOPATH=$HOME/.go
export GO111MODULE=on
export GOPROXY=https://mirrors.aliyun.com/goproxy/

sudo chown coder:coder -R /usr/local/go
go install github.com/go-delve/delve/cmd/dlv@latest

php调试

nodejs调试(略)

java调试

python调试


沧浪水
97 声望12 粉丝