can I get a complete stacktrace? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: can I get a complete stacktrace? (/showthread.php?tid=14715) |
can I get a complete stacktrace? - El Forum - 01-12-2009 [eluser]Unknown[/eluser] Can anyone clue me into on how to get a complete stacktrace? I have subclassed CI_Exceptions, and am trying to get a stacktrace in an overridden log_error function. I have tried both debug_backtrace() and throwing an Exception in a try block, and doing a getTraceAsString() on the exception in the catch clause. It seems that the "juicy" bit is missing... :-S from debug_backtrace(): Code: at 0 /var/www/application/libraries/MY_Exceptions.php (line 13) -> getDebugBacktrace() * note: this has been formatted by me. the "unknown" part on line 3 is mine b/c the array does not containing that info. from getTraceAsString(): Code: #1 /var/www/system/codeigniter/Common.php(209): MY_Exceptions->show_error('An Error Was En...', 'record not foun...') I saw a user note in the PHP docs about call_user_func_array possibly messing with the stracktrace. Has anyone found a way around this? Thanks! EDIT: I am running this on Ubuntu 8.10 w/ PHP 5.2.6 |