Answer the question
In order to leave comments, you need to log in
Why doesn't Xdebug collect full script trace information in a file?
Hello, I came across an incomprehensible situation when the xdebug options for tracing with advanced logging do not work as they should.
Here is my include:
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set ('xdebug.collect_return', 1);
ini_set('xdebug.collect_params', 4);
ini_set('xdebug.collect_vars', 1);
ini_set('xdebug.dump_globals', 1);
ini_set('xdebug.show_local_vars', 1);
ini_set('xdebug.var_display_max_depth', -1);
ini_set('xdebug.var_display_max_children', -1);
ini_set('xdebug.var_display_max_data', -1);
if($_GET['type'] == 'test') {
xdebug_start_trace('/var/www/adminus/data/www/кук.уц/trace/');
$str = "Xdebug";
function ret_ord( $c )
{
return ord( $c );
}
foreach ( str_split( $str ) as $char )
{
echo $char, ": ", ret_ord( $char ), "\n";
}
xdebug_stop_trace();
}
TRACE START [2007-05-06 14:37:16]
0.0003 114112 -> {main}() ../trace.php:0
0.0004 114272 -> str_split('Xdebug') ../trace.php:8
0.0007 117424 -> ret_ord($c = 'X') ../trace.php:10
0.0007 117584 -> ord('X') ../trace.php:5
0.0009 117584 -> ret_ord($c = 'd') ../trace.php:10
0.0009 117584 -> ord('d') ../trace.php:5
0.0010 117584 -> ret_ord($c = 'e') ../trace.php:10
0.0011 117584 -> ord('e') ../trace.php:5
0.0012 117584 -> ret_ord($c = 'b') ../trace.php:10
0.0013 117584 -> ord('b') ../trace.php:5
0.0014 117584 -> ret_ord($c = 'u') ../trace.php:10
0.0014 117584 -> ord('u') ../trace.php:5
0.0016 117584 -> ret_ord($c = 'g') ../trace.php:10
0.0016 117584 -> ord('g') ../trace.php:5
0.0019 41152
TRACE END [2007-05-06 14:37:16]
TRACE START [2016-02-15 05:18:12]
0.0065 261560 -> xdebug_stop_trace() /var/www/adminus/data/www/ууцу.уцц/уцуц/aуцу_уцуц/уцу_уцуц.php:26
0.0067 261624
TRACE END [2016-02-15 05:18:12]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question