Run/Debug Configuration: Kotlin Script
The Kotlin script run/debug configuration enables you running or debugging Kotlin scripts.
Specify here the path to a .kts file to be launched.
Specify the string to be passed to the VM for launching an application, for example,
When specifying JVM options, follow these rules:
Type a list of arguments to be passed to the program in the format you would use on the command line. Use the same rules as for specifying the VM options.
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 and select the directory.
Expand the list to view available path variables that you can use as a path to your working directory.
Create environment variables and specify their values.
Add dependencies with “provided” scope to classpath
Enable this option to add dependencies with the Provided scope to the runtime classpath.
Shorten command line
Select a method that will be used to shorten the command line if the classpath gets too long, or you have many VM arguments that exceed your OS command line length limitation:
Use alternative JRE
Select the checkbox, if you want to specify an alternative JRE here; select the required JRE from the list, or click and choose the required JRE from the file chooser dialog.