JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.33k stars 1.18k forks source link

How to debug the Compose Multiplatform #5065

Closed smileding closed 4 months ago

smileding commented 4 months ago

image

Following the instruction in Compose-Multiplatform-Core/MULTIPLATFORM.md, I successfully built a KMP project with the locally published Compose. But when I made some changes in Compose Multiplatform core source code, I didn't find a way to debug it. I may be missing something obvious, could you give me some tutorials on how to debug? Thank you!

igordmn commented 4 months ago

Use IDEA/Android Studio to debug desktop/web and AppCode on macOS for running iOS (it is obsolete, but Android Studio currently has issues in the current configuration).

image

Running Android target in compose-multiplatform-core isn't supported at the moment, as CMP doesn't build/maintain it, it reuses Jetpack Compose artifacts. Read the Google manual how to open/build it.

smileding commented 4 months ago

Thanks!

okushnikov commented 4 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.