Re: debugging
| From: | Jochem Maas | Date: | Wed, 19 Jan 2005 22:00:49 +0000 |
| Subject: | Re: debugging | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206777@lists.php.net to get a copy of this message | ||
Justin French wrote:
On 19/01/2005, at 10:51 PM, Marek Kilimajer wrote:...
I solved that little problem by letting the global include file try to include debug.php which if not found causes the code to define DEBUG to false (because DEBUG is not defined). debug.php simply defines DEBUG to true - debug.php is not in CVS :-) nevermore a production site in DEBUG mode! its a little safeguard, really this should be taken care of by propering tagging, release schedules, QC etc. not that have much experience in hardcore cvs/svn management (not really the right list either :-)I use simple define('DEBUG', true'); in the main config file where also database login info is stored.I like to use exactly the same files for both development and live servers... it makes it much easier to mirror the site via FTP, commit via SVN, etc.
--- Justin French, Indent.com.au justin.french@indent.com.au Web Application Development & Graphic Design