[Catalyst] debug mode

Dylan Vanderhoof DylanV at semaphore.com
Mon Jun 4 20:55:01 GMT 2007


You can put the following in MyApp.pm:
 
# Allow debug to be set via myapp_local.yml
sub debug { __PACKAGE__->config->{debug} }

Then setting debug: 1 in the yaml file will use debug mode.
 
-D

	-----Original Message-----
	From: mark [mailto:mark at itsolve.co.uk] 
	Sent: Monday, June 04, 2007 7:51 AM
	To: 'The elegant MVC web framework'
	Subject: RE: [Catalyst] debug mode
	
	
	I thought a nice way would be to be able to specify it in the
config file; then your _local.yml file could add it for the dev
environment. Yet to produce a patch for that though it should be pretty
straight forwards.
	 
	Mark

  _____  

	From: John Goulah [mailto:jgoulah at gmail.com] 
	Sent: 04 June 2007 15:32
	To: The elegant MVC web framework
	Subject: [Catalyst] debug mode
	
	
	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? 
	
	Thanks,
	John
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070604/86ce2633/attachment.htm


More information about the Catalyst mailing list