• vscode go debug无法启动问题


    如图,进度条总是处于滑动状态,始终无法启动程序:

    解决办法:

    将文件单独拷贝至新的目录,只有一个go文件,重新创建launch.json,会生成.vscode目录

    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Launch Package",
                "type": "go",
                "request": "launch",
                "mode": "auto",
                "program": "${fileDirname}"
            }
        ]
    }
    此时debug启动文件,成功。
     
    原因估计是因为文件在嵌套目录,导致找不到对应的launch.json文件,所以始终无法启动。
  • 相关阅读:
    SP1812 LCS2
    SP1811 LCS
    P3804 【模板】后缀自动机
    P3808 【模板】AC自动机(简单版)
    P3879 [TJOI2010]阅读理解
    P2602 [ZJOI2010]数字计数
    P4719 【模板】动态dp
    P1122 最大子树和
    P3554 [POI2013]LUK-Triumphal arch
    P3565 [POI2014]HOT-Hotels
  • 原文地址:https://www.cnblogs.com/beilong/p/14989028.html
Copyright © 2020-2023  润新知