note 16882 added to language.basic-syntax.comments
| From: | php-general at lists dot php dot net | Date: | Sat, 17 Nov 2001 05:49:37 +0000 |
| Subject: | note 16882 added to language.basic-syntax.comments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20941@lists.php.net to get a copy of this message | ||
The use of a debug variable works well. But when you are debugging, sometimes you want a lot
information, sometimes you just need a few debugging info. Of course, when not debugging, there is
no need for this info. So, this can be handled by a debug level.
if ($debugLevel >= 1)
Debug output for level >= 1
if ($debugLevel >= 5)
Debug output for level >= 5
Same as before, the level of debug is set in one file. Setting the level to 0 will not produce any
debugging info.
--
http://www.php.net/manual/en/language.basic-syntax.comments.php
http://master.php.net/manage/user-notes.php?action=edit+16882
http://master.php.net/manage/user-notes.php?action=delete+16882
http://master.php.net/manage/user-notes.php?action=reject+16882