[xdebug-general] XDebug in plain text?

From: Adam Gibbins <ag[@]adamgibbins.com>
Date: Sun, 23 Aug 2009 11:39:30 +0100

Hi all,
I'm attempting to use XDebug with nginx and php-fpm however am finding
that it shows all stack traces and var_dump() output in plain text.
Meaning the stack trace isn't in its normal usual tabular form and
isn't coloured, e.g. this is how its shown if I view the page source:

Parse error: syntax error, unexpected '=' in
/srv/www/example.com/core/index.php on line 69

Call Stack:
    0.0001 624184 1. {main}() /srv/www/example.com/core/index.php:0

However when I view it normally within the browser, because its plain
text it becomes all squashed up and not very nice to view:

Parse error: syntax error, unexpected '=' in
/srv/www/example.com/core/index.php on line 69 Call Stack: 0.0001
624184 1. {main}() /srv/www/example.com/core/index.php:0

The same happens with the output of var_dump(), because its shown in
raw text I don't get the usual nice colouring and its output all
squashed up into the browser an illegible:

array(41) { ["HOSTNAME"]=> string(0) "" ["PATH"]=> string(28)
"/usr/local/bin:/usr/bin:/bin" ["TMP"]=> string(4) "/tmp"
["TMPDIR"]=> string(4) "/tmp" ["TEMP"]=> string(4) "/tmp"
["OSTYPE"]=> string(0) "" ["MACHTYPE"]=> string(0) ""
["MALLOC_CHECK_"]=> string(1) "2" ["USER"]=> string(6) "nobody"
["HOME"]=> string(12) "/nonexistent" ["FCGI_ROLE"]=> string(9)
"RESPONDER"

I'm running the following:
nginx: 0.7.61
PHP: 5.3.0 (CGI/FastCGI)
XDebug: 2.0.5
php-fpm: 0.5.12

Any help in resolving this would be much appreciated.

Many thanks.
Received on Sun Aug 23 2009 - 12:39:55 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST