For general debugging info see the Fuchsia Debugging Workflow.
A screenshot takes a screenshot of what is currently displayed on the Fuchsia device's screen. It returns a 2D buffer.
From the Fuchsia device console, run:
screencap /tmp/filename.ppm
From your host workstation, run:
fx scp [$(fx get-device-addr)]:/tmp/filename.ppm /tmp/filename.ppm
A Scenic snapshot takes a 3D representation of what is currently displayed on the screen. It usually takes longer to capture than a screenshot, and can be used to visualize issues with layout of 3D content.
From your host workstation, run:
fx shell gltf_export > filename.gltf
You can upload filename.gltf
to any gltf viewer, such as this online viewer.
The SceneGraph as text is useful when you want to see all the resources, including non-visible elements such as transform matrices.
A Fuchsia snapshot contains the SceneGraph that is rendered to the screen. Capture it from your host workstation using the following commands:
fx snapshot
unzip <snapshot output file>
Then, look for Scenic’s info in the inspect file:
less inspect.json
To capture all the resources created, including those that are not currently attached to the main SceneGraph, you can use dump-scenes
. From your host workstation, run the following command:
fx shell "cat /hub/c/scenic.cmx/*/out/debug/dump-scenes"