For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] Getting the real file and line from pear errors









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Getting the real file and line from pear errors
Justin Patrin

2005-05-09, 3:56 am

On 5/8/05, Dan Rossi <pear@electroteque.org> wrote:
>=20
> On 09/05/2005, at 1:34 PM, Justin Patrin wrote:
>=20
> No no noway :)
>=20
>=20
> I am pushing the PEAR_Error into Error_Stack then handling it via the
> error_stack callback.
>=20
>=20
>=20
> It looks like the backtrace in pear is using debug_backtrace if i
> vardump backtrace, its timing out on the screen i am sending the line
> and file of the second key of backtrace ie $error->backtrace[1][file] ,
> which is getting the pear one, i wonder where the rest of the files are
> ?
>=20


Well your full backtrace is probably too much for your machine to
handle. Heavily OO calls make the backtrace very large.

Try looping through the backtrace and just echoing the file / line /
method keys.

--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com