Is there a way, in compose desktop, to dump a Skia SKP file for debugging purposes? Or in general, is there any tool in works to debug layouts (similar to how it's done in Android)
alexfacciorusso
09/26/2023, 11:28 AM
Actually, I've cursedly managed to wrap the main skia view and start recording SKP files. If there is any "official" way to do so, then great.
I see there's no "debug metadata" added to the skia draw calls, I don't know if it's because of the method I'm using or because there is no metadata like what I suppose gets used on the Android Layout tool in Android Studio to debug layouts in Compose.
This is my code (warning: EXTREMELY CRUDE code):
https://gist.github.com/alexfacciorusso/95f813fd552df1091053b2fce2d28fa7
alexfacciorusso
09/26/2023, 11:29 AM
image.png
alexfacciorusso
09/26/2023, 11:32 AM
In general, I suppose my question is more, is there any tooling currently in build for inspecting compose desktop's composables (e.g. debugging layouts, accessibility, modifiers etc.)