print('<pre>'); // Helps format the output
debug_print_backtrace();
/*
#0 eval() called at [/site/wp-content/plugins/debug-bar-console/class-debug-bar-console.php:84]
#1 Debug_Bar_Console->ajax()
#2 call_user_func_array(Array ([0] => Debug_Bar_Console Object ([_title] => Console,[_visible] => 1),[1] => ajax), Array ([0] => )) called at [/site/wp-includes/plugin.php:525]
#3 do_action(wp_ajax_debug_bar_console) called at [/site/wp-admin/admin-ajax.php:89]
*/
$backtrace = debug_backtrace();
print('<pre>');
print_r ( $backtrace );
/*
Array
(
[0] => Array
(
[file] => /site/wp-content/plugins/debug-bar-console/class-debug-bar-console.php
[line] => 84
[function] => eval
)
[1] => Array
(
[function] => ajax
[class] => Debug_Bar_Console
[object] => Debug_Bar_Console Object
(
[_title] => Console
[_visible] => 1
)
[type] => ->
[args] => Array
(
[0] =>
)
)
[2] => Array
(
[file] => /site/wp-includes/plugin.php
[line] => 525
[function] => call_user_func_array
[args] => Array
(
[0] => Array
(
[0] => Debug_Bar_Console Object
(
[_title] => Console
[_visible] => 1
)
[1] => ajax
)
[1] => Array
(
[0] =>
)
)
)
[3] => Array
(
[file] => /site/wp-admin/admin-ajax.php
[line] => 89
[function] => do_action
[args] => Array
(
[0] => wp_ajax_debug_bar_console
)
)
)
*/
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.