简体   繁体   中英

Configure xDebug on Linux for PHP5

I, as far as I can tell, have set up xDebug to work on my local machine, however it, obviously, is not. I am trying to go from

没有xdebug

to

用xdebug .

Who cares? The second image is with xDebug working, which afaik, means I can get stack traces etc to work. Help!

I followed the install instructions at the xdebug site. I have included the following in my /etc/php5/apache2/php.ini file:

zend_extension=/etc/php5/xdebug/xdebug.so
xdebug.default_enable = 1
xdebug.auto_trace = 1
xdebug.collect_vars = 1
xdebug.collect_params = 4

When viewing phpinfo(), I get:

This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Furthermore, below that in the modules section I see that xDebug with it's settings is there.

However I can't get seem to get xDebug to show any information on my pages when there are bugs?

Any ideas?

Xdebug doesn't format output.

Make sure you have PHP's html_errors set to 1 in php.ini

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM