I am not sure when or what I have changed, but suddenly xdebug no longer renders its formatted stacktraces. Instead, it renders the stacktrtace without any HTML; here is an example; Whereas I would expect the orange tables like here
I have searched the documentation, but cannot find any reference to a setting or config that would (un)set this. What did I do wrong?
My xdebug.ini (Ubuntu, so /etc/php5/conf.d/xdebug.ini) is small:
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.default_enable = 1
xdebug.auto_trace = 1
xdebug.remote_enable = 1
xdebug.remote_port = 9010
xdebug.remote_host = audrey
; xdebug.profiler_enable = 1
; Markup of var_dump
xdebug.overload_var_dump = 1
If you set the XDEBUG_CONFIG environment variable to any value, then Xdebug will also get activated. Debug session management for Step Debugging is also available through XDEBUG_SESSION_START . With xdebug. trigger_value you can control which specific trigger value will activate the trigger.
Verify that Xdebug is properly running by checking again with phpinfo() or php -v as explained above. Note that 9003 is the default port. If this port is used by another service on your system, change it to an unused port. After adding these settings, restart your webserver again.
Xdebug allows you to log all function calls, including parameters and return values to a file in different formats. Those so-called "function traces" can be a help for when you are new to an application or when you are trying to figure out what exactly is going on when your application is running.
Xdebug respects PHP's normal settings regarding error reporting and formatting. In this case, you have most likely "html_errors" set to Off in php.ini. Turn it back to On, and Xdebug should show nice orange tables again.
cheers, Derick
Try this
ini_set('xdebug.auto_trace', 1);
http://php.net/manual/en/function.ini-set.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With