note 11923 added to pear.standards.comments.php

From: Date: Tue, 13 Mar 2001 17:16:54 +0000
Subject: note 11923 added to pear.standards.comments.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12341@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 $i\n"; ________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. http://www.php.net/manual/en/pear.standards.comments.php

« previous php.notes (#12341) next »