Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This document explains to you how to install Xdebug to your Web server and prepare it for work with PhpStorm.

  1. Download the Xdebug extension compatible with your PHP version.
  2. Copy the extension file to your Web server in a location that is accessible by the Web server.
  3. Add the following lines at the end of your php.ini file on the Web server:

    [Xdebug]
    zend_extension=<full_path_to_xdebug_extension>
    xdebug.remote_enable=1
    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_host' can be a host name or an IP address (e.g. localhost).
    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.
  4. Restart your Web server
  5. Check your installation:
    1. Create a file with the following content:

      <?php
      phpinfo();
      ?>

    2. Open a page corresponds to this file and check phpinfo() output. It should contain Xdebug section:
  • No labels