There are times during development when you'll need to be able to easily access all layout handles of a specific page. Unfortunately, Magento does not provide this capability out of the box.
This module adds the list of all layout handles on the page before the end body block, which makes it very easy to identify which layout handles are loaded for a specific page.
composer require markshust/magento2-module-layouthandlelogger
bin/magento module:enable MarkShust_LayoutHandleLogger
bin/magento setup:upgrade
This module has no configuration. Just install, and as long as you are in developer mode, you'll see all of the layout handles loaded for a specific page.
This module is sponsored by M.academy, the simplest way to learn Magento.
My name is Mark Shust and I'm the creator of this repo. I'm a Zend Certified Engineer and Adobe Certified Magento Developer, and have been involved since the early days of Magento (0.8!). I'm no longer available for consulting, but am creating course content full-time at M.academy.