Goland配置
cd到main函数所在的go文件目录
执行下面命令等待2分钟左右,直到出现API server listening at: [::]:8033
/root/Downloads/dlv debug --headless --listen=:8033 --api-version=2 -- --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=systemd --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1 --fail-swap-on=false --logtostderr=false --log-dir=/var/log/kubelet --log-file=/var/log/kubelet/kubelet.log --v=1
代码设置断点后,点击此处debug
标签:false,log,--,kubelet,goland,dlv,var From: https://www.cnblogs.com/WJQ2017/p/17557568.html