<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=504285419-04062007><FONT face=Arial color=#0000ff size=2>You
can put the following in MyApp.pm:</FONT></SPAN></DIV>
<DIV><SPAN class=504285419-04062007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=504285419-04062007><FONT face=Arial color=#0000ff size=2>#
Allow debug to be set via myapp_local.yml<BR>sub debug {
__PACKAGE__->config->{debug} }<BR></FONT></SPAN></DIV>
<DIV><SPAN class=504285419-04062007><FONT face=Arial color=#0000ff size=2>Then
setting debug: 1 in the yaml file will use debug mode.</FONT></SPAN></DIV>
<DIV><SPAN class=504285419-04062007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=504285419-04062007><FONT face=Arial color=#0000ff
size=2>-D</DIV></FONT></SPAN>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> mark
[mailto:mark@itsolve.co.uk] <BR><B>Sent:</B> Monday, June 04, 2007 7:51
AM<BR><B>To:</B> 'The elegant MVC web framework'<BR><B>Subject:</B> RE:
[Catalyst] debug mode<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=187485014-04062007><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=187485014-04062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=187485014-04062007><FONT face=Arial
color=#0000ff size=2>Mark</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> John Goulah [mailto:jgoulah@gmail.com]
<BR><B>Sent:</B> 04 June 2007 15:32<BR><B>To:</B> The elegant MVC web
framework<BR><B>Subject:</B> [Catalyst] debug mode<BR></FONT><BR></DIV>
<DIV></DIV>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? <BR><BR>Thanks,<BR>John<BR></BLOCKQUOTE></BODY></HTML>