I write a program in VSCode, and the project path in D:\myapp. And I "F5" to debug.
Normally, I will get a file names "__debug_bin" in my project folder.
Last week, I updated VSC and reinstall all tool (dlv or something).
And I get a new debug file "__debug_bin1167246115.exe".
But the file not output in my project folder, the absolute path is "C:\Users\xxx\AppData\Local\Temp\__debug_bin1167246115.exe".
The question is:
I need the debug file output and run in my project root folder; How can I do that?
- VS Code Version : 1.62.3 (user setup)
- Golang Version : 1.17.3
- launch.json :
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/",
"cwd": "${workspaceFolder}/",
}
]
}
