note 16882 deleted from language.basic-syntax.comments by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 22:26:51 +0000 |
| Subject: | note 16882 deleted from language.basic-syntax.comments by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22305@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.