Skip to content

Unable to debug tests with CMake launchTargetPath setup #34

@spoorcc

Description

@spoorcc

We run our unit tests from CMake on Windows, the program we use as debug target comes from the cmake plugin (as recommended in their documentation):

"program": "${command:cmake.launchTargetPath}",

Your (very usefull!) plugin, checks for a debug configuration and on windows it will look for the .exe extension, but this is missing.
This makes it not possible to debug from the Test Explorer view.

const executionExtension: boolean = isWin ? config.program.endsWith(".exe") : true;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions