|Table of Contents|
- Xdebug or Zend Debugger should be installed and configured.
- Install PhpStorm debugger bookmarklets or one of the Browser Debugging Extensions
- Install the Chrome browser extension as outlined in Live Edit in PhpStorm
1. Listen for PHP debug connections
In PhpStorm, toggle the Listen for PHP Debug Connections button in the toolbar. Alternatively use the Run | Start listen for PHP Debug Connections menu.
We do not have to set up any Run/Debug Configurations for this. As outlined in Zero-configuration Web Application Debugging with Xdebug and PhpStorm, Listen for PHP Debug Connections will make PhpStorm accept incoming debugger connections initiated by Xdebug or Zend Debugger.
Depending on preference and/or application requirements, we can use PhpStorm's built-in webserver to run our application locally, or make use of any other webserver running locally or on a remote machine.
2.1. (option 1) Using the built-in webserver
2.2. (option 2) Using a different webserver
3. Start a PHP debugging session from the browser
To start a PHP debugging session, we will make use of the approach outlined in Zero-configuration Web Application Debugging with Xdebug and PhpStorm.
- listen for PHP debug connections;
- start the newly created Debug configuration.