Home >Backend Development >PHP Tutorial >php debug print stack
<?php // filename: /tmp/a.php function a_test($str) { echo "\nHi: $str"; var_dump(debug_backtrace()); } a_test('friend'); ?>rrree
result
<?php // filename: /tmp/b.php include_once '/tmp/a.php'; ?>