-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot debug single test in VS Code #1177
Comments
This works fine for me. Post your environment details and a full compilable example. |
What version of Go, VS Code & VS Code Go extension are you using?Version Information
go env
@brackendawson seems cannnot debug test case in file |
With the above file layout I can re-create this on Go 1.18. This run configuration works though: {
"version": "0.2.0",
"configurations": [
{
"name": "Launch TestFar",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}",
"args": ["-test.run", "PlaygroundSuite/TestFar"],
}
]
} I suspect this is probably a bug in the run configuration generated by the "debug test" button in the VSCode Go plugin, I'm actually surprised it works with testify/suite at all. I don't know how to see the run configuration VSCode uses here, probably best to open an issue here. |
Which I see you already did golang/vscode-go#2189 |
Thanks, will track it by golang/vscode-go#2189. |
click debug test, but debug console output:
seems no test detect, works ok when click run test.
The text was updated successfully, but these errors were encountered: