https://kotlinlang.org logo
n

napperley

11/20/2019, 6:17 AM
Is there a field in Run/Debug Configurations for passing through program arguments? Trying to setup multiple run configurations that pass different program arguments to a Kotlin Native binary.
m

mbonnin

11/20/2019, 5:32 PM
That one ?
🚫 2
n

napperley

11/20/2019, 9:54 PM
I'm referring to the Gradle Run Configuration.
d

DALDEI

11/25/2019, 2:51 PM
Gradle Run for JVM uses the gradle application plugin -- not sure about native. For JVM the Program arguments are the arguments to Gradle not to your program. In V5.something gradle the run command was augmented to accept a "--args=" parameter which passes through to your app. You could try to see if this works by first trying on command line then in dialog --args="my program args"
3 Views