Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug does not work with var_dump()

I'm not sure why, but xdebug does not highlight var_dump(). But config seems to be fine. Have no idea why... Any suggestions?

This is my phpinfo(); http://pastebin.com/A45dqnWN

plus even xdebug_var_dump() doesn't highlight anything. It works, but look like normal var_dump().

like image 956
dlitsman Avatar asked Aug 09 '12 11:08

dlitsman


1 Answers

I found that option "xdebug.default_enable Off Off" in you php_info(). I also have noticed that in last versions of EasyPHP this option is turned off. So turn it on by setting this line in php.ini:

xdebug.default_enable=1

Next is just common operation which disables var_dump and other errors in HTML output completely (not your case, but maybe helpful for others):

html_errors = On
like image 175
happy_marmoset Avatar answered Oct 04 '22 00:10

happy_marmoset