note 11922 rejected and deleted from pear.standards.comments.php by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Tue, 13 Mar 2001 23:09:27 +0000 |
| Subject: | note 11922 rejected and deleted from pear.standards.comments.php by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12364@lists.php.net to get a copy of this message | ||
This is a note to andykirk's note:
I use for this problem (debug-code) the following construct:
/* comment this with # or // for debuging
# begin of debug code
debug-code
# end of debug code
# */
It's quite the same... but perhaps
# */
is better readable?
The use of debuging code IF-statements is a good way, if you search for a general failure in calling
procedures for example (PHPLIB for example makes extensive use of it) but it slows down the code and
interpreter and sometimes makes it impossible to find a very special error, cause of a
"megabytes of debug output error". :-)
PHP is missing here something like C´s conditional compiling of code (#if).