vscode编辑器代码调试

沧浪水

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调试

阅读 352
90 声望
9 粉丝
0 条评论
你知道吗?

90 声望
9 粉丝
文章目录
宣传栏