#Error while debug in vscode

2 messages · Page 1 of 1 (latest)

still copper
#

hi there, i am trying to debug a Go program from vscode but getting this error. Any idea what this is about?
Error:
Failed to launch: fork/exec /Users/mquanit/Desktop/Projects/GoApps/go code snippets/Channels/__debug_bin343630112: exec format error

Launch.json:

"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "debug",
"env": {},
"args": [],
"program": "${workspaceFolder}/Channels/main.go"
}
]

plain bay
#

have you been experimenting with the GOOS and/or GOARCH environment variables recently?