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.23k stars 1.18k forks source link

Optimization suggestions for debugging experience #4450

Closed xinzhengzhang closed 1 month ago

xinzhengzhang commented 8 months ago

Describe the problem

Proposal

  1. When publishing composition-native, it also publishes all source-map rules of the corresponding lldb and tell developers how to set up lldb in the documentation
    settings append target.source-map /opt/buildAgent/work/8ebe0a8279b7bdad8/ ${workspace_root}/compose-multiplatform-core
    settings append target.source-map <OTHERLIBS> <PATH>
  2. When compiling, use the relative path -Xdebug-prefix-map =. Erase the prefix in the absolute path. Note that there is currently a bug with relative paths. I also mentioned an issuse (https://youtrack.jetbrains.com/issue/KT-65366/Native-lldb-cannot-locate-the-source-code-when-relative-paths-are-used-in-debug-prefix-map), but it is ok for absolute paths currently, and we also use this method internally.
okushnikov commented 2 months ago

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