Run configurations
Run & Debug:
In order to run code, tests, and tasks, JetBrains Fleet uses run configurations.
A run configuration specifies the parameters for running your application. It includes commands, executable paths, environment variables, virtual machine options, arguments, and other necessary context.
note
JetBrains Fleet stores run configurations in a format that is different from that of IntelliJ IDEA. However, if your project contains a run configuration from IntelliJ IDEA, it will be automatically converted to work with JetBrains Fleet.
Press or select Run | Run & Debug from the main menu. In the popup that appears, select Create Run Configurations.
.fleet/run.json opens. This file contains the definitions for the run configurations in the workspace. The file uses JSON format.
Define new configurations as objects in the
configurations
array. For example, the following configuration runsscript.sh
and specifies its location using a macros.{ "configurations": [ { "name": "Run my script", "type": "command", "program": "$USER_HOME$/script.sh", "args": ["any", "optional", "arguments"] } ] }
note
For information on macros, such as
$USER_HOME$
in the example above, refer to Run configuration macros.tip
You can explore the available parameters using code completion. Use to see the suggestions at the caret.
Press or select Run | Run & Debug from the main menu. Select the configuration that you are going to run or debug.
Each run configuration has the following properties:
Key | Description |
---|---|
| A human-readable name that identifies the run configuration |
| The type of the run configuration, which defines the startup logic. The rest of the parameters depend on the type of the run configuration. For more information about available run configuration types and their parameters, refer to the section of the particular language you are using: JavaScript, Java, Kotlin, Go, Python, C#, PHP, Rust. |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |