Last active
August 18, 2025 13:04
-
-
Save xh3b4sd/6a0cb77ff458f85d8ef1a980a9511f3b to your computer and use it in GitHub Desktop.
VS Code debugger configuration for debugging single tests and local binaries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Run Local Binary", | |
| "type": "go", | |
| "request": "launch", | |
| "mode": "auto", | |
| "program": "${workspaceFolder}", | |
| "args": [ | |
| "daemon", | |
| ], | |
| }, | |
| { | |
| "name": "Test Current File", | |
| "type": "go", | |
| "request": "launch", | |
| "mode": "test", | |
| "program": "${workspaceFolder}/${relativeFileDirname}", | |
| "args": [ | |
| "-test.run", | |
| "Test_Operator_Integration" | |
| ], | |
| "envFile": "${workspaceFolder}/.env.secret", | |
| "buildFlags": "-tags=integration", | |
| } | |
| ] | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this in any project root.