Hi, I'm using IntelliJ 2019.3 Ultimate, and am wor...
# intellij
m
Hi, I'm using IntelliJ 2019.3 Ultimate, and am working on a Kotlin Multiplatform library targeted for iOS & Android, when I'm setting breakpoints in unit tests which I put in commonMain, and then trying to debug, the test executes but it doesn't stop on breakpoints. I'm using android sdk 29.0.2 with it. The gradle test task I'm trying to run is
testDebugUnitTest
. Has anybody encountered this issue and has a solution? Thanks
k
Hey Max, as I understand, you set up Native Debug for Intellij? https://kotlinlang.slack.com/archives/C3PQML5NU/p1564747546241900?thread_ts=1564747546.241900 Do you set
Line Breakpoints
, among 2 possible as shown in the picture? Will they work for some
Kotline/Native Application
autogenerated configuration (another picture)?
m
Seems like I have it installed, currently I'm running the test through the Android test target, and it doesn't stop on breakpoints
I tried both line breakpoint and kotlin line breakpoint, neither worked
k
Then it looks like https://youtrack.jetbrains.com/issue/KT-35326 — if it costs you a liitle to attach an reproducer — this would be great.
m
Done as you requested, reproduced via the template of the Mobile Android/iOS | Gradle project in IntelliJ 2019.3 Manual Steps (written this in the ticket as well): 1. File>New>Project 2. Kotlin > Mobile Android/iOS | Gradle 3. Modified local.properties to my local Android sdk path (used version 29.0.2) 4. Add a kotlin breakpoint in testHello function within SampleTestsAndroid.kt 5. Open Gradle pane on the right 6. RIght click on app>Tasks>verification>test and choose Debug. cc @basher
b
@Kirill Shmakov [JB] this isn't the native debugger though. this is trying to debug common code from the android side using
testDebugUnitTest
so JVM-based, not native
(Max and I work together and debugged this together)
Should we file a separate KT issue, or does one already exist?
k
Max and Ben, thank you for your investigation and reproducer! I will create and link new issue by myself.
👍 1
b
Thank you!
@Kirill Shmakov [JB] is there a ticket we can follow 😅 🙏
k
The ticket is here https://youtrack.jetbrains.com/issue/KT-35632, but it probably it was backloged due to some platform issues. UPD: Backlog is normal state for this type of tickets.
b
Thanks!