如何在 CLion 中同时 运行 多个调试器?
How to run multiple debuggers simultaneously in CLion?
我运行正在 CLion 中创建一个大型项目,其中包含 10 个小型项目。每个小项目都有一个主要功能。这些小项目应该 运行 顺序,比如 a->b->c->d->... 以确保大项目 运行 正确。
目前当我尝试调试这个大项目时,我必须手动依次启动每个小项目的调试会话,这很烦人。
请问有没有什么方便的方法可以一键自动帮我启动这些小项目的调试过程?
在您的 Run/Debug 配置中使用“启动前”来添加依赖项目。
来自 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.
我运行正在 CLion 中创建一个大型项目,其中包含 10 个小型项目。每个小项目都有一个主要功能。这些小项目应该 运行 顺序,比如 a->b->c->d->... 以确保大项目 运行 正确。
目前当我尝试调试这个大项目时,我必须手动依次启动每个小项目的调试会话,这很烦人。
请问有没有什么方便的方法可以一键自动帮我启动这些小项目的调试过程?
在您的 Run/Debug 配置中使用“启动前”来添加依赖项目。
来自 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.