- var_dump: documentation ( source)
- debug_backtrace: documentation ( source)
- print_r: documentation ( source)
<?php
class Test{
function __construct($arg){
$this->test($arg);
}
function test($args) {
throw new Exception;
}
}
try {
new Test('Yar');
} catch(Exception $e) {
print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT));
var_dump($e->getTrace());
}
?>