Skip to content

Instantly share code, notes, and snippets.

@xh3b4sd
Created May 13, 2022 14:30
Show Gist options
  • Save xh3b4sd/6a0cb77ff458f85d8ef1a980a9511f3b to your computer and use it in GitHub Desktop.
Save xh3b4sd/6a0cb77ff458f85d8ef1a980a9511f3b to your computer and use it in GitHub Desktop.
VS Code debugger configuration for debugging a single test of the currently open test file.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Test Current File",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/${relativeFileDirname}",
"args": [
"-test.run",
"Test_Bidder_size_ope/004"
]
}
]
}
@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