Skip to content

Instantly share code, notes, and snippets.

@KennFatt
Created September 10, 2024 11:13
Show Gist options
  • Save KennFatt/1ed341aca99813f9b80b914418a0b18f to your computer and use it in GitHub Desktop.
Save KennFatt/1ed341aca99813f9b80b914418a0b18f to your computer and use it in GitHub Desktop.
Visual Studio code debugger launch options to run a specific main file from project's workdir (usually for my HTTP services).
{
"configurations": [
{
"cwd": "${workspaceFolder}",
"mode": "debug",
"name": "Launch file",
"program": "${workspaceFolder}/cmd/main.go",
"request": "launch",
"type": "go"
}
],
"version": "0.2.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment