How to associate a debugger in Testing with a specific launch config #4224
Unanswered
lucianthorr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the Testing left panel, where I see a list of all the specific tests that I can run, whenever I try to debug a test, there's a dropdown to select a specific launch config. The debug config I use to run against the project's binary is slightly different than the config used to run against the unit tests.
Is there anyway I can hardcode this association in settings.json or launch.json so that it's not a manual process each time I debug a test?
For further context, the reason I need to use a different config for running the binary vs running unit tests is the target program.
To debug the actual project, the
(lldb) Launch
config has"program": "${command:cmake.launchTargetPath}"
To debug the unit tests, the
(ctest) Launch
config has"program": "${cmake.testProgram}"
Beta Was this translation helpful? Give feedback.
All reactions