Run and Rerun Applications
CLion enables running entire applications as well as unit tests.
CLion makes use of the settings defined in a Run/Debug Configuration. All the run configurations that exist in a project, are available in the Select Run/Debug Configuration list.
If you want to see the list of all currently running applications, selectfrom the main menu.
Note that after you've started a run session, the icon that marks the Run tool window and in the Run/Debug Configuration Selector toggles to to indicate that the run process is active.
Note: Choose the desired Cmake profile before running your application.
Run an application
- On the main toolbar, select the desired run configuration, and:
Choose Run | Run 'selected configuration' from the main menu.
- Press Shift+Alt+F10, select the desired run configuration from the popup menu, and press Enter.
From this popup menu you can:
Invoke the Edit Configuration dialog.
Edit the selected configuration before launch F4.
Instantly delete a configuration Delete.
Switch from run to debug and vice versa (hold Shift).
Access a previously selected configuration 1.
Access context-dependent configuration (2 or 3).
This popup menu can also be quickly accessed by pressing F9, when you're not running any debug session.
Invoke the Run Anything dialog by pressing Double Ctrl (or search for Run anything in Ctrl+Shift+A). In the Run Anything dialog, start typing the configuration name, select it from the list, and press Enter to launch:
Rerun an application
You can re-run an application if its tab is still opened in the Run window. The program re-runs with the initial settings.
In the Run window, select the tab where the desired application is opened.
In the toolbar of the Run window, click the Rerun button , or press Ctrl+F5.