Reply to Re: How to debug?

Your name:

Reply:


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
>
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация