Layout Debugger
Overview
The layout debugger can dump a variety of things including:
Matched CSS Rules
Style Sheets
Content (DOM) tree
Text Runs
Frames
Retained display list
Usage
Use a debug build or add
ac_add_options --enable-layout-debuggerto your mozconfig.Run with
./mach run --layoutdebug [filename]. Dump information via Menu -> Dump.
Command-line options
Example
./mach run --layoutdebug [filename] --dump-frames
Option |
Description |
|---|---|
|
Start with the Layout Debugger. |
|
Automatically close the Layout Debugger once the page has loaded, after delaying the specified number of seconds (defaults to 0). |
|
Capture a profile of the Layout Debugger using the Gecko Profiler, and save it to the specified file (defaults to |
|
Layout the page in paginated mode. |
|
Toggle option to include anonymous subtrees in content dumps. |
|
Toggle option to only include deterministic information in frame dumps, for ease of diffing. |
|
Dump the content tree after page load. |
|
Dump the frame tree (in app units) after page load. |
|
Dump the frame tree (in CSS pixels) after page load. |
|
Dump the retained display list after page load. |