CLion 2019.3 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




Choose the desired target from the list.

Target types are marked with the following icons:

All targets - All targets

Executable - Executable

Target library - Library


From this drop down list, select executable for your configuration.

Program arguments

In this field, 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 the Expand button button and type the desired arguments.

Working directory

Specify the working directory to be used for running the 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 and select the directory.

Expand the list to view 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 variables

Create environment variables and specify their values.

For multiple variables, use semicolon as a delimiter or click icons vcs changelist dark to enter them in a dedicated dialog:

adding environment variables

Select the Include system environment variables checkbox if you want the custom values to be appended to the system ones. Clear this checkbox to allow overwriting system values. For more detail, see CMake environment.

Last modified: 20 February 2020