How to associate a debugger in Testing with a specific launch config #4224
-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, as far as I know, you should be able to create any debug configuration that you'd like within the launch.json file. Therefore, you could do exactly as you mentioned and specify the |
Beta Was this translation helpful? Give feedback.
Yes, as far as I know, you should be able to create any debug configuration that you'd like within the launch.json file. Therefore, you could do exactly as you mentioned and specify the
program
field as you desire.