1、安装 delve go get github.com/go-delve/delve/cmd/dlv 2、进入调试 $GO_PATH/dlv attach $pid 3、代码设置断点 b $abs_path/my_code.go:190
go get github.com/go-delve/delve/cmd/dlv
$GO_PATH/dlv attach $pid
b $abs_path/my_code.go:190
本文标题:Golang线上代码调试
本文链接:https://www.haomeiwen.com/subject/hqxrmltx.html
网友评论