Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to debug tests with CMake launchTargetPath setup #34

Open
spoorcc opened this issue Mar 16, 2022 · 2 comments
Open

Unable to debug tests with CMake launchTargetPath setup #34

spoorcc opened this issue Mar 16, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@spoorcc
Copy link

spoorcc commented Mar 16, 2022

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;

@bneumann bneumann added the bug Something isn't working label Mar 16, 2022
@bneumann
Copy link
Owner

Interesting find. Gotta think what I was trying to solve there, maybe it works even without the exe?

@bneumann
Copy link
Owner

bneumann commented Oct 2, 2024

Oh my god, how 2 and a half years pass. Sorry for keeping you hanging. I just had a day off and did a lot of fixes. I just pushed the removal. Check the pipeline, there should be an artifact that you can download and use for testing:

https://github.com/bneumann/CppUTest-Test-Adapter/actions/runs/11146141466/artifacts/2006414798

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants