CLion 2019.2 Help

Compound Configurations

Suppose you would like to launch multiple run/debug configurations simultaneously. For example, you may want to run several configurations of different types or a sequence of several test configurations. You can configure this behavior with a compound run/debug configuration.

You can choose the desired CMake profile for a configuration that you are going to add to the compound Run/Debug configuration. If you don't choose a CMake profile, CLion uses the default one. You can select the profile in Settings / Preferences | Build, Execution, Deployment | Cmake or from the Run/Debug configuration switcher:

cmake profiles in the configuration switcher

When you run or debug your code using a compound configuration, you actually launch a sequence of configurations it includes in the order they are listed.

Create a compound run/debug configuration

  1. Open the Run/Debug configurations dialog. You can access it from the Run | Edit Configurations main menu or using the run configuration switcher on the toolbar.

  2. In the dialog that opens, click icons.general.add.svg.png and select Compound from the Add New Configuration menu.

    compound run/debug configuration

  3. To include a new run/debug configuration into compound configuration (and choose the desired CMake profile for it), click icons.general.add.svg.png and select the desired one from the list. Then select the preferred CMake profile:

    cmake profile for a configuration included in compound

  4. Click Apply and OK buttons to finish.

Last modified: 3 October 2019