Pages

Configure XDebug to Debug PHP Projects

Friday, February 22, 2013

There are few options to debug PHP projects. By default XDebug is not configured in PHP engine. So you need to follow some steps.

Steps:

  1. If you have used any of the AMP package like XAMPP/WAMP/LAMP, the XDebug extension may be already installed in your PHP engine.If not download the XDebug tool from its official website
  2. Download the XDebug extension compatible with your version of PHP and save it in the php/ folder.
  3. Locate and open the active php.ini file. If you use AMP package you will find php.ini file under the php/ folder.
  4. To enable XDebug, locate the [XDebug] section in the php.ini file and update it as follows:
    [XDebug]
    zend_extension="[AMP Path]\php\ext\php_xdebug.dll"
    xdebug.remote_enable = 1
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    xdebug.remote_port = 9000
  5. Restart the web server. 
  6. To check the XDebug installation Open the XDebug checker. Enter the output of the phpinfo().

3 comments

  1. very nice and informative post..thanks for sharing...

    ReplyDelete
  2. where i can download the file: xdebug.so?

    ReplyDelete
  3. Configure Xdebug To Debug Php Projects
    -
    Developers Circle >>>>> Download Now

    >>>>> Download Full

    Configure Xdebug To Debug Php Projects
    -
    Developers Circle >>>>> Download LINK

    >>>>> Download Now

    Configure Xdebug To Debug Php Projects
    -
    Developers Circle >>>>> Download Full

    >>>>> Download LINK KT

    ReplyDelete