Skip to content

debug: should tests run through the debugger in "noDebug" mode? #336

Closed
@eliben

Description

@eliben

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.FrozenDueToAge

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions