Xdebug
Step-by-step instructions to configure Xdebug debugging inside VS Code and PhpStorm.
Debugging with Xdebug
Xdebug is a powerful tool for profiling and debugging PHP applications. Burrow comes with Xdebug pre-installed for all supported PHP versions.
Enabling Xdebug
Enable Xdebug in the PHP Versions tab under the extensions panel of your active PHP runtime. Burrow configures Xdebug to listen on port 9003 and restarts the PHP service automatically.
IDE Configuration
VS Code
- Install the PHP Debug extension from the marketplace.
- Create a
.vscode/launch.jsonfile in your project:{ "version": "0.2.0", "configurations": [ { "name": "Listen for Xdebug", "type": "php", "request": "launch", "port": 9003 } ] } - Press F5 to start listening, set a breakpoint, and refresh your page.
PhpStorm
- Go to Settings → PHP → Servers and add a server pointing to your local domain (e.g.
myapp.local). - Go to Settings → PHP → Debug and confirm the Xdebug port is set to
9003. - Click the Start Listening for PHP Debug Connections icon in the toolbar, set a breakpoint, and refresh your page.