码迷,mamicode.com
首页 > 其他好文 > 详细

VS Code调试Golang提示Failed to continue:Check the debug console for details.

时间:2018-09-30 00:53:31      阅读:1511      评论:0      收藏:0      [点我收藏+]

标签:vscode   bsp   没有   dirname   打开   spl   rgs   class   smart   

解决方法:

打开调试面板  VSCode->查看->调试

添加调试目标 在"没有调试"的下拉框中点击"添加配置.."添加目标调试配置

在"env": {},中加入%go_path即可解决。 路径斜线注意要以\

技术分享图片

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "remotePath": "",
            "port": 2345,
            "host": "127.0.0.1",
            "program": "${fileDirname}",
            "env": {},
            "args": [],
            "showLog": false
        }
    ]
}

VS Code调试Golang提示Failed to continue:Check the debug console for details.

标签:vscode   bsp   没有   dirname   打开   spl   rgs   class   smart   

原文地址:https://www.cnblogs.com/LC161616/p/9727251.html

(3)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!