Setup XDebug on PHPStorm

Enable Xdebug in env

Simply set XDEBUG_MODE to debug in your .env file and restart the app container.

Install the Browser Extension

For Firefox and Chrome, you have to install Xdebug helper extension

If Xdebug works now, then simply skip the rest of this document. 🥷

Configure the Browser extension

  1. Right-click on the extension Icon and choose options
  2. Set the IDE key to other and type in phpstorm as follows: image

Configure PHPStorm

  1. Open Xdebug settings and enter IDE key & port image
  2. Go to servers and create a server with the mappings PHPStorm settings

Your setup should be working now. 🦄

External docs: