-
Notifications
You must be signed in to change notification settings - Fork 752
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
debug: should tests run through the debugger in "noDebug" mode? #336
Comments
The more I think about it, the more I believe it should be part of DAP. It's part of the protocol spec. The codelens part of How to implement the actual test command still needs investigation. Currently the go extension is directly invoking |
Is that what is used when you click "run test | debug test" that show up above every test in the source code? |
When
@stamblerre @ianthehat @pjweinbgo also discussed about the possibility of running tests and build in Sad that there is no clear boundary we can draw. |
Interesting development: by using or not using delve for |
We should handle To provide "without debugging" experience via dlv, we have two options:
As for |
Ship has sailed and dlv dap has |
The current DA implements
noDebug
mode ("Run without debugging" in the vscode IDE) by invoking the debuggee directly when in 'debug' mode, but going through Delve in 'test' mode.Initially the new DAP DA will work the same way.
Is this the right thing to do? Generally speaking, the DA shouldn't invoke Delve at all in
noDebug
mode. Theoretically, users may not have Delve installed or something might be wrong with the Delve installation - this should not preclude users from running and testing programs without debugging in VSCode.Another point of reference is that the "run test" codelens (
GoRunTestCodeLensProvider
) invokesgo test
directly without going through the debugger.The text was updated successfully, but these errors were encountered: