首页 文章

对流浪者GO进行远程调试

提问于
浏览
0

我在主机上使用带有16.04图像的流浪汉也是ubuntu 16.04在流浪汉我开始

$ dlv debug --headless --listen=:2345 --log

我的启动我的json:

enter image description here

但是vscode从本地启动他没有连接到vagrant中的端口:

config.vm.network:forwarded_port,guest:2345,host:2345,id:“debuggolang”,host_ip:“localhost”,auto_correct:true

当我试图将他置于常规格式时:

enter image description here

断点不会停止

enter image description here

和dlv退出

问候

1 回答

  • 0

    我解决了它我需要将路径放到我的项目的根目录中:

    remotePath

相关问题