setup xdebug using netbeans

Hi All,

   I am a newbie in yii framework.it is the most powerful MVC in php i have ever seen.i am using netbeans editor to work with yii.i also setup xdebugger(localhost) and it works fine.please follow the steps to setup and run xdebug in netbeans.

my environment:

XAMPP 1.7.3

WINDOWS XP,

netbeans IDE 6.9.1

Steps:

1.check the php_xdebug.dll extension exist or not. please go to you {DRIVE}:\xampp\php\ext. if php_xdebug.dll is not exist download from xdebug site and rename the file as php_xdebug.dll adn save it under {DRIVE}:\xampp\php\ext folder.

  1. Now, check you php.ini file for the setting of xdebug.uncomment the following:

    xdebug.remote_enable = 1

    xdebug.remote_handler = "dbgp"

    xdebug.remote_host = "localhost"

    xdebug.remote_port = 9000

    xdebug.trace_output_dir = "{DRIVE}:\xampp\tmp"

3.Restart your Apache server.

  1. open project from netbeans.Debug your project from debug.

Works greats for me! Best of luck!

tanks very usefull.

and following link mybe usefull:

http://martinsikora.com/debugging-php-in-netbeans-using-xdebug

http://www.yiiframework.com/wiki/257/windows-web-development-with-ampps-netbeans-and-xdebug/