本文介绍了如何在VS Code中指定二进制文件的输出路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的launch.json:

  

尝试使用 outDir 设置指定。


My launch.json:

{
"version": "0.2.0",
"configurations": [

    {
        "name": "Launch",
        "type": "go",
        "request": "launch",
        "mode": "debug",
        "remotePath": "",
        "port": 2345,
        "host": "127.0.0.1",
        "program": "${workspaceRoot}/app",
        "env": {
            "GO_ENV":"dev"
            },
        "args": [],
        "showLog": true
    }
]

}

I want that when I'm running debug binary file with name "debug", it appears in the "app" folder. How can I specify a different output path?

解决方案

Try to use outDir setting for specifying.

这篇关于如何在VS Code中指定二进制文件的输出路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 06:38