xdebug
extension is disabled by default as it causes about 20% performance hit.
-
Xdebug Helper extension for Chrome
You can also pick from the list of options for other browsers
-
Set environment variable on the
cli
servicecli: ... environment: - XDEBUG_ENABLED=1 ...
-
Update container configuration with
fin up
-
Open your project in PHPStorm
-
Set a breakpoint wherever you like
-
Click on the Start Listening for PHP Debug Connections button in PHPStorm
-
Click on Debug in Xdebug Helper in Chrome
-
Click on Accept in the Incoming Connection From Xdebug dialogue in PHPStorm
Happy debugging!