Thursday, June 30, 2011

install xdebug on windows

1. Download xdebug windows binary file from http://xdebug.org/download.php. If you are using Apache, make sure you download the "PHP X.X XXX TS(XX XXX)" one. TS here means thread safe. If you are using IIS, then download NTS version.

2. After download the .dll file, put it in the php/ext folder and rename it to php_xdebug.dll

3. Edit the php.ini file, add these lines:

extension=php_xdebug.dll

[Xdebug]
xdebug.profiler_enable=on
xdebug.trace_output_dir="d:\xdebug"
xdebug.profiler_output_dir="d:\xdebug"
xdebug.dump.GET=*
xdebug.show_local_vars=1

"d:\xdebug" is just the folder where you want to save xdebug's output.

Restart the web server and run phpinfo(). If you find xdebug section, then the installation succeeds.

No comments: