Re: How to show complete exception text?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Waterson wrote:

> This one time, at band camp, "Christopher J. Bottaro"
> <cjbottaro@xxxxxxxxxxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux