In Developer Tools, turn on Run in Developer Mode. Caching is off, templates are rebuilt on every request, and each module's Info tab lists its events.
Optionally also turn on:
Install the Xdebug extension for your PHP version, for example with pecl install xdebug or your system's package (php-xdebug). Then in your php.ini:
zend_extension=xdebug xdebug.mode=debug xdebug.start_with_request=trigger xdebug.client_host=127.0.0.1 xdebug.client_port=9003
client_host is the computer your editor runs on. If PHP runs in a container or on another machine, use that computer's address as the server sees it (for Docker, often host.docker.internal).start_with_request=trigger, Xdebug only connects when asked: use your browser's Xdebug helper extension, or add XDEBUG_TRIGGER=1 to the URL.Restart PHP (the web server or PHP-FPM). To check Xdebug is loaded, open ACP > Modules > Core > System Core > Tools > System Check and click the PHP version: the PHP info page lists Xdebug.
/var/www/html) to your local copy.return $_data; line of a listener, and load the page with the trigger.The editor stops at the breakpoint, with every variable to look at.
fdebug() writes any values to the Debug Log. See The Debug Log.