Re: How to show complete exception text?

From: Date: Fri, 19 Aug 2005 15:05:06 +0000
Subject: Re: How to show complete exception text?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-220956@lists.php.net to get a copy of this message
Kevin Waterson wrote: > This one time, at band camp, "Christopher J. Bottaro" > <cjbottaro@alumni.cs.utexas.edu> wrote: > >> Hi, >> >> When an exception propagates all the way up the stack frame and splatters >> itself on my webpage, most of the text is cut off! This is completely >> useless. I can see that there is an error, but I can't read the frickin >> error message. How do I configure PHP to show the entire exception >> message? > > not sure of your code, are you trying to do something like.. > <?php > > try { > lots of good code; > } > > catch(Exception $e){ > echo 'oh my, and exception has been thrown'.$e->getMessage(); > } > ?> No. The exception is not being caught and is propagating all the way up. Then it is displayed on the webpage along with the call stack. The problem is that a lot of the text is cut short so it will fit on the webpage without word wrapping. > Kevin -- C

« previous php.general (#220956) next »