Skip to content

Instantly share code, notes, and snippets.

@devdrops
Last active July 18, 2024 21:54
Show Gist options
  • Save devdrops/47177b034a5acfff155ebbc580140e1a to your computer and use it in GitHub Desktop.
Save devdrops/47177b034a5acfff155ebbc580140e1a to your computer and use it in GitHub Desktop.
Debug settings for Go projects on VS Code

Debug settings for Go projects on VS Code

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceFolder}/cmd/main.go",
            "cwd": "${workspaceFolder}"
        }
    ]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/main.go",
"cwd": "${workspaceFolder}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment