[Catalyst] debug mode

Dave Rolsky autarch at urth.org
Mon Jun 4 16:07:47 GMT 2007


On Mon, 4 Jun 2007, John Goulah wrote:

> What is the best way to deal with the -Debug flag between a production and
> development environment?  Obviously its not desirable to go into the file
> and remove the flag every time the code goes to prod.   I see you can start
> the stanalone server with -d to force debug.  I think I remember about an
> environment variable to set debug also.  Is the preferred method to take the
> hardcoded flag out and use one of these, or is there another way (such as a
> config option)?  How are people dealing with this?

I just specify all my plugins and flags in a config module and only 
include "-Debug" on non-prod machines, by looking at the hostname.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/



More information about the Catalyst mailing list