如何在VS Code中指定二进制文件的输出路径? [英] How to specify output path of binary file in VS Code?
本文介绍了如何在VS Code中指定二进制文件的输出路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
{
版本:0.2.0,
配置:[
{
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
}
]
}
我希望当我运行名为debug的调试二进制文件时,它会出现在app文件夹中。如何指定不同的输出路径?
解决方案
尝试使用 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中指定二进制文件的输出路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文