admin管理员组文章数量:1335084
I'm using VS2022 v17.11 and I have a native cpp project. The project have multiple build configurations, like Debug, Release, Profile, ASAN.
For each of those build types I need to be able to easily launch/debug from within the IDE using different sets of {working directory, command arguments} configurations. Currently to do this I need to open project settings go to "Debugging" section, and manually change the {workdir, args} fields EVERYTIME I need to launch with different arguments. As the project progresses, I have more and more different configurations to debug the application for different inputs/environments.
Is there a way to specify multiple debug configurations and to be able to select from some dropdown right before debug?
I've searched a lot, and found different suggestions that seems to be completly misleading and none of them work. That includes:
- "Multi-project Launch configurations" - There is not way to specify different arguments
- "launch.vs.json" - Visual studio doesn't recognize the existence of the file in the solution directory, this the closes that looks like what I need, but I can't get it to work.
- "launchSettings.json" - same as above, and it seems to be only for C#, but couldn't find confirmation.
- "Launch profiles UI" - I do not know why people are suggesting this all over the place, where it seems to only be for C#.
本文标签: visual studioVS2022 Specify multiple debuglaunch configurationsStack Overflow
版权声明:本文标题:visual studio - VS2022 Specify multiple debuglaunch configurations - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742385234a2464897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论