Friday 10 January 2014

PHP - Debugging using XDebug

PHP Debugging using xdebug

Thanks for Ref: http://xdebug.org/docs/install  http://xdebug.org/docs/install

About XDebug 

XDebug is an opensource Debugger and Profiler for PHP. PDT has built in support for Xdebug, which allows you to step-debug through your PHP projects.

Setup


Installation

The first step is to install XDebug and verify that XDebug is running. See the Installation section of the XDebug manual for how to obtain the extension.
To setup XDebug as your default debugger in PDT, simply configure the Default Settings in the Debug eclipse preference page of PHP
Debug Settings.png

Configuration

The most important setting for xdebug to work with PDT is xdebug.remote_enable = 1. Typically you set this value in your php.ini. To verify that XDebug
is loaded by your server, use the phpinfo() method and check if you can find an XDebug configuration section.
PHP INI1.png PHP INI2.png

No comments:

Post a Comment