Skip to content

getDebugConfiguration doesn't handle runner override #19882

@diorcety

Description

@diorcety

On VSCode, when running a test using lens snipper, the test is run using cargo test.
The debug use "cargo test --message-format=json --no-run ..." in order to get executable information in order to construct debugger args.

If in .cargo/config.toml the runner is overridden the run is working well unlike the debug.
Indeed "cargo test --message-format=json --no-run ..." doesn't give any information about the runner.

A way to have the runner is to parse the line containing Executable on stderr when using "cargo test -v --no-run"

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions