https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kirill Shmakov [JB]

08/02/2019, 12:05 PM
Dear community, In our new EAP Kotlin plugin (1.3.50-eap-54) we have supported basic Run/Debug functionality for Kotlin/Native executables. It is available in IDEA Ultimate 192 provided a plugin “Native Debug for Intellij” is installed. Kotlin plugin will automatically create IDE run configuration for each executable in your MPP project. In these configurations one could specify program arguments, environment variables and working directory. Each configuration could be run with either debug or release binary. If you update your MPP plugin in your project to the latest version (
id 'org.jetbrains.kotlin.multiplatform' version '1.3.50-eap-54'
or `kotlin("multiplatform") version "1.3.50-eap-54"`; see template Idea project for
build.gradle.kts
and
settings.gradle.kts
examples), you would be able to set breakpoints (choose
Line Breakpoint
in dialog) in your project as well. The feedback is much appreciated. Kotlin plugin: https://plugins.jetbrains.com/plugin/6954-kotlin/update/66397 nativeDebug plugin: https://plugins.jetbrains.com/plugin/12775-native-debug-for-intellij
metal 6
👍🏼 10
👏 1
🙌 3
🎉 22
🔥 10
k

Kris Wong

08/02/2019, 12:52 PM
Is there a reason to use IDEA Ultimate over CE? I am using CE but we have a site license for all JB products.
w.r.t kotlin or multiplatform, that is
l

louiscad

08/02/2019, 5:25 PM
Very good! Is AppCode and iOS support planned in the not too distant future?
k

Kirill Shmakov [JB]

08/02/2019, 6:50 PM
Kris, this depends on the specific of your work, but in general there are some features available only in Ultimate.
Louis, right now you may execute your code from AppCode in simulator. I would say that smoothness of debug experience is in the plans.
👍 2
j

Jonas Bark

08/07/2019, 6:45 AM
I created a new project with the template "Mobile Shared Library | Gradle", set a breakpoint in the iosTest, hit debug for the "iosTest" gradle task and expected it to break while executing the test but it didn't. Did I understand something wrong here?
k

Kirill Shmakov [JB]

08/07/2019, 12:04 PM
Jonas, in this setting
iosTest
run test’s executable on iOS simulator, which is not supported (yet). And, as I understood, you are launching Gradle IDE task, not a Kotlin/Native Application IDE task. The announced functionality is supposed to work under the latter.
j

Jonas Bark

08/07/2019, 12:25 PM
Got it, thanks! I'm still confused though what a "Kotlin/Native Application IDE task" is?
k

Kirill Shmakov [JB]

08/07/2019, 1:58 PM
You could see one if you will create a template “Native | Gradle” project. Such run configurations are supposed to be created from Gradle MPP DSL for each executable (release / debug) + one for each tests source set.
🙏 1