note 11923 deleted from pear.standards.comments by philip

From: Date: Fri, 31 Aug 2001 16:09:42 +0000
Subject: note 11923 deleted from pear.standards.comments by philip
Groups: php.notes 
Request: Send a blank email to php-notes+get-17436@lists.php.net to get a copy of this message
There is another tip I can give you for debuging code. In some state of programing you often need debuging code, which should at the end of the project be deleted. I use for such things code, which is NOT INTENDED - so it is very easy to find the code at the and and strip the lines. Example (I use ______ for intending): // making bla things function bla () { echo "<pre>"; ____foreach ($bla as $i => $b) { echo "line $in"; ________make_bla_things($b); ____} echo "</pre>"; } think this is very readable... everybody knows, that the uninteded lines are for debugging and most editors can search those lines.

« previous php.notes (#17436) next »