zoukankan      html  css  js  c++  java
  • Go VS Code 调式常见问题处理

    GO VS Code 调式配置

    launch.json
    { "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "go", "request": "launch", "mode": "debug", "remotePath": "", "port": 2345, "host": "127.0.0.1", "program": "${fileDirname}", "env": { "GOPATH":"D:\项目目录;D:\项目目录1;" }, "args": [], "showLog": true } ] }

    Failded to continue:"Cannot find Delve debugger. Install from https://github.com/derekparker/delve & ensure it is in your "GOPATH/bin" or "PATH" 错误处理

    或VS Code 终端:go get github.com/derekparker/delve/cmd/dlv

    多项目调试

    launch.json
            {
                "name": "Launch",
                "type": "go",
                "request": "launch",
                "mode": "debug",
                "remotePath": "",
                "port": 2345,
                "host": "127.0.0.1",
                "program": "${fileDirname}",
                "env": {
                    "GOPATH":"E:\GoFouxucPrivateRoomPorject\"
                },
                "args": [],
                "showLog": true
            },
            {
                "name": "Launch2",
                "type": "go",
                "request": "launch2",
                "mode": "debug",
                "remotePath": "",
                "port": 2345,
                "host": "127.0.0.1",
                "program": "${fileDirname}",
                "env": {
                    "GOPATH":"E:\GoFouxucPrivateRoomPorject\"
                },
                "args": [],
                "showLog": true
            }
    

      

  • 相关阅读:
    强大的晶体管
    FPGA--数字芯片之母
    方波中的毛刺
    运放,运放
    解决标准FPGA资源丰富却浪费的问题
    国产FPGA市场分析 该如何破局
    流行的FPGA的上电复位
    Git 学习笔记
    日志格式的配置
    Shiro 笔记
  • 原文地址:https://www.cnblogs.com/wxbug/p/8856213.html
Copyright © 2011-2022 走看看