CLion 2018.2 Help

Run/Debug Configuration: Gradle Native Application

The Gradle Native Application run/debug configuration enables you to run or debug targets detected for your Gradle project.

Configuration tab

ItemDescription
Target Choose the desired target from the list.

Target types are marked with the following icons:

cl targetAll - All targets

cl targetExecutable - Executable

cl targetCustom - Custom target

cl targetLibrary - Library

Executable From this drop down list, select executable for your configuration.
Program argumentsIn this text box, type a list of arguments to be passed to the program in the format you would use in the command line. If necessary, click the icons general expandComponent svg button and type the desired arguments in the Program Parameters dialog box.
Working directoryIn this text box, specify the current directory to be used by the running application. This directory is the starting point for all relative input and output paths. By default, the field contains the directory where the project file resides. To specify another directory, click the Browse button browseButton select the directory in the dialog that opens.

Click the run debug listView icon icon to view the list of available path variables that you can use as a path to your working directory. In this case you do not need to specify any additional environment variables in the Environment variables field.

Environment variablesClick Browse browseButton.png to open the Environment Variables dialog box, where you can create variables and specify their values.

Note that you can copy-paste the contents of the Environment variables field without having to open the Environment Variables dialog box.

Last modified: 18 September 2018

See Also