How to see all layout rules applies to a page?

Set a debugger breakpoint to the line:
https://github.com/magento/magento2/blob/2.4.1/lib/internal/Magento/Framework/View/Layout.php#L313-L313
And then evaluate in the debugger:

$xml->asNiceXml()

01