我的 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
}
]
我希望当我运行名为“debug”的调试二进制文件时,它会出现在“app”文件夹中。如何指定不同的输出路径?
最佳答案
尝试使用outDir
设置来指定。
关于go - 如何在 VS Code 中指定二进制文件的输出路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43371910/