Search code examples
phpxdebugtracephalcon

Xdebug trace Phalcon can not save trace file


I am using Xdebug to trace PHP. With Laravel project it works well.

php.ini set is like that:

zend_extension="/opt/bitnami/php/lib/php/extensions/xdebug.so"
xdebug.default_enable = On
xdebug.auto_trace=1
xdebug.trace_format=0
xdebug.trace_options=1
xdebug.trace_output_dir="/tmp/midi/report/trace/tmp"
xdebug.collect_params=4
xdebug.collect_return=On
xdebug.trace_output_dir=/tmp/midi/trace

With trace_format=0, collect_params=4 and collect_return=On I can get the trace file named xxx.xt

but with the same config my Phalcon project does not work. There is no report generated.

I first consider the Phalcon has problem, but I set the index.php

<?php
echo "abcd";
exit;

I think this should not use Phalcon because it before use Phalcon\Di\FactoryDefault; it also no report generated.

What should I do to find the solution?


Solution

  • Try to do a phpinfo(); in the index.php to check if xdebug is loaded add at all and what settings are getting into your php config.