bneumann / CppUTest-Test-Adapter

A test adapter for Visual Studio Code for the C/C++ Unit Test framework CppUTest.
MIT License
16 stars 7 forks source link

Unable to debug tests with CMake launchTargetPath setup #34

Open spoorcc opened 2 years ago

spoorcc commented 2 years ago

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.

https://github.com/bneumann/CppUTest-Test-Adapter/blob/d2ebbd087c52d419b1e2c45f9df51f52752bba5b/src/Infrastructure/VscodeSettingsProvider.ts#L56

bneumann commented 2 years ago

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