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) invokes go test directly without going through the debugger.
The current DA implements
noDebugmode ("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
noDebugmode. 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 testdirectly without going through the debugger.