Debug TYPO3¶
Debugging With PhpStorm and Xdebug¶
In order to configure PhpStorm with Xdebug you need to do three things:
Install xdebug
Configure xdebug settings in your php.ini
Use the appropriate plugin in your browser
Configure PhpStorm
php.ini¶
Example setup:
php.ini¶
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.max_nesting_level = 1000
You should also configure the port (xdebug.remote_port) if that should differ from the default (9000).
Remember to restart your Webserver / php-fpm / Docker after you made your changes.
Install Plugin¶
Install plugin "Xdebug Helper" for your browser. To start debugging, click on the bug icon and select "Debug".
PhpStorm¶
Check
Run: Webserver Debug Validation
Start
Run: Start listing for PHP Debug Connections
Create some breakpoints
More Information¶
Configuring Xdebug with PhpStorm (Jetbrains)