"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}",
"cwd": "${workspaceRoot}",
"logOutput": "dap",
"showLog": true,
"hideSystemGoroutines": true,
}
]
I have a project, and it have the go.mod. Now I can execute "go build" build my project, but when I debug this project by vscode, prompt occurs :
Build Error: go build -o F:....\debug_bin.exe -gcflags all=-N -l . no Go files in F:....\ (exit status 1)
If applicable, add screenshots or recordings to help explain your problem.
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go versionto get version of Go from the VS Code integrated terminal.gopls -v versionto get version of Gopls from the VS Code integrated terminal.code -vorcode-insiders -vto get version of VS Code or VS Code Insiders.b3e4e68a0bc097f0ae7907b217c1119af9e03435
x64
Go: Locate Configured Go Toolscommand.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)command to open your settings.json file.Share all the settings with the
go.or["go"]orgoplsprefixes.Describe the bug
this is my config.json
I have a project, and it have the go.mod. Now I can execute "go build" build my project, but when I debug this project by vscode, prompt occurs :
Build Error: go build -o F:....\debug_bin.exe -gcflags all=-N -l . no Go files in F:....\ (exit status 1)
Steps to reproduce the behavior:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.