【问题标题】:VSCode and Golang, How to Debug only my code?VSCode 和 Golang,如何仅调试我的代码?
【发布时间】:2021-08-07 03:43:16
【问题描述】:

当我调试 Go 应用程序时,有没有办法在 VSCode 上启用“仅我的代码”?

【问题讨论】:

    标签: go visual-studio-code


    【解决方案1】:

    您是否尝试在 launch.json 中添加配置?

    "configurations": [
            {
               .... # existing config
            },
            {
                "name": "Debug Go App",
                "type": "go",
                "request": "launch",
                "justMyCode": true,
            }
        ]
    

    参考:

    【讨论】:

    • 是的,我试过了,还是不行……顺便说一句,“True”是默认值
    猜你喜欢
    • 2018-12-02
    • 2018-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-26
    • 2019-06-13
    • 2019-03-29
    • 2021-05-26
    相关资源
    最近更新 更多