Debug TYPO3

Debugging With PhpStorm and Xdebug

In order to configure PhpStorm with Xdebug you need to do three things:

  1. Install xdebug
  2. Configure xdebug settings in your php.ini
  3. Use the appropriate plugin in your browser
  4. Configure PhpStorm

php.ini

Example setup:

php.ini
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.max_nesting_level = 1000
Copied!

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