Skip to content

Instantly share code, notes, and snippets.

@xh3b4sd
Last active August 18, 2025 13:04
Show Gist options
  • Select an option

  • Save xh3b4sd/6a0cb77ff458f85d8ef1a980a9511f3b to your computer and use it in GitHub Desktop.

Select an option

Save xh3b4sd/6a0cb77ff458f85d8ef1a980a9511f3b to your computer and use it in GitHub Desktop.
VS Code debugger configuration for debugging single tests and local binaries.
{
"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",
}
]
}
@xh3b4sd
Copy link
Author

xh3b4sd commented Aug 6, 2022

go test ./... -run Test_Bidder_size_ope/004

@xh3b4sd
Copy link
Author

xh3b4sd commented Aug 7, 2024

Put this in any project root.

.vscode/launch.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment