This document explains to you how to install Xdebug to your Web server and prepare it for work with PhpStorm.
- Download the Xdebug extension compatible with your PHP version.
- Copy the extension file to your Web server in a location that is accessible by the Web server.
- Add the following lines at the end of your php.ini file on the Web server:
xdebug.remote_host=<the host where PhpStorm is running>
xdebug.remote_port=<the port to which Xdebug tries to connect on the host where PhpStorm is running>
Note: The value of 'xdebug.remote_port' is usually 9000. It is default value in Xdebug and PhpStorm. Ensure that the specified port is opened on your client machine.
- Restart your Web server
- Check your installation