我正在CLion运行一个大项目,里面有10个小项目.每个小项目都有一个主要功能.这些小项目应按顺序运行,例如a-> b-> c-> d-> …以确保大型项目正常运行.
目前,当我尝试调试这个大型项目时,我必须按顺序手动启动每个小项目的调试会话,这很烦人.
我的问题是,有没有什么方便的方法可以通过一次点击自动启动这些小项目的调试过程?
最佳答案 在运行/调试配置中使用“启动前”以添加相关项目.
来自CLion web help:
Before Launch
Specify which tasks must be performed before applying the run/debug configuration. The specified tasks are performed in the order they appear in the list.
Run Another Configuration. Select this option to have another run/debug configuration executed. In the dialog that opens, select the configuration to run.
This option is available only if you have already at least one run/debug configuration in the current project.