|
Posted by Henk Verhoeven on 10/08/05 00:46
John,
If you use a lot of functions (like with OOP) you may like to print a
backtrace. For this you can write a simple error handling function, see
http://www.php.net/manual/en/function.set-error-handler.php, that calls
debug_print_backtrace() (this function is php5 only, but it is also
available in http://pear.php.net/package/PHP_Compat ).
Greetings,
Henk Verhoeven,
www.phppeanuts.org (framework, includes error handler (prints a
backtrace) and unit testing tool)
John wrote:
> How can I debug a PHP program at all? Can/should I use a pop up a message on
> the screen showing a variable? Or is there a better way of testing the code?
>
> How can I pop up a message any way?
>
> Thanks a lot
> John
>
>
>
Navigation:
[Reply to this message]
|