Showing posts with label xdebug. Show all posts
Showing posts with label xdebug. Show all posts

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.

Sunday, February 20, 2011

php xdebug not formatting var_dump

I installed php 5.3 and xdebug on my ubuntu 10.10. However, the xdebug is not formatting php's var_dump().

The reason is in php.ini, by default html_errors = off. Simply change html_errors = on and you will see var_dump is formatted by xdebug.