Skip to content

GoDebug unwanted automatic selection of debug profile. #564

@barklan

Description

@barklan

I'm working on a large project that has extensive test coverage. My main issue is when I want to debug something - I almost always want to debug using launch.json configuration (it is set up to launch dlv on ./cmd/server package).

But if I'm not missing anything, currently there is not way to consistently do (or map) this. If I'm in buffer somewhere in the project GoDebug command launches debug session for corresponding test file in current package. The only way to launch with launch.json configuration is to jump to main.go file, call GoDebug - only then there is floating window with option to select debug configuration.

Might it be a good idea to add some flag to GoDebug to launch using launch.json (or force open selection dialog)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions