Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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:
    Code Block
    
    [Xdebug]

    
    zend_extension=<full_path_to_xdebug_extension>
    
    Note

    Since PHP 5.3, you always need to use the 'zend_extension', and not NOT 'zend_extension_ts', 'zend_extension_debug' or 'extension'.

  4. Restart your Web server
  5. Check your installation:
    1. Create a file with the following content:
      Code Block
      
      <?php

      
      phpinfo();
      
      ?>
    2. Open a page corresponds to this file and check phpinfo() output. It should contain Xdebug section:

...

Add the following lines to the 'Xdebug' section of your php.ini file:

Code Block

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>
Info

The value of 'xdebug.remote_host' can be a host name (e.g. localhost) or an IP address.

...