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 10 Next »

This tutorial explains how to install Xdebug extension to your web server and prepare it to be used for debugging with PhpStorm IDE.

Intalling Xdebug extension

  1. Download the Xdebug extension compatible with your PHP version from the official site.
  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:

    Since PHP 5.3, you always need to use the 'zend_extension', and 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:
    2. Open a page corresponds to this file and check phpinfo() output. It should contain Xdebug section:

Configuring debugger

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


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


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.

For additional information check

  • No labels