visual studio - VS2022 Specify multiple debuglaunch configurations - Stack Overflow

I'm using VS2022 v17.11 and I have a native cpp project.The project have multiple build configura

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#.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742385235a4433923.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信