<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to enable/disable debug messages for a certain action</title>
	<atom:link href="http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Wed, 28 Jul 2010 19:06:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-129673</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 03 Jun 2009 14:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-129673</guid>
		<description>@Rubens: You are welcome!</description>
		<content:encoded><![CDATA[<p>@Rubens: You are welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rubens Mariuzzo</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-129587</link>
		<dc:creator>Rubens Mariuzzo</dc:creator>
		<pubDate>Tue, 02 Jun 2009 09:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-129587</guid>
		<description>Thanks, that save me a lot of work.</description>
		<content:encoded><![CDATA[<p>Thanks, that save me a lot of work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zheka</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6621</link>
		<dc:creator>zheka</dc:creator>
		<pubDate>Thu, 17 May 2007 21:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6621</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6502</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sat, 12 May 2007 06:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6502</guid>
		<description>@zheka: Hm, I am not sure if it works with 1.1.12.x. I would try it with the latest stable release.</description>
		<content:encoded><![CDATA[<p>@zheka: Hm, I am not sure if it works with 1.1.12.x. I would try it with the latest stable release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zheka</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6493</link>
		<dc:creator>zheka</dc:creator>
		<pubDate>Fri, 11 May 2007 16:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6493</guid>
		<description>does not quite work for me 

I am trying to suppress debug output on some of the actions while leaving application-wide debug level at 2. 

so i included the following line inside actions i so not want want to output debug info:

Configure::write(&#039;debug&#039;, &#039;0&#039;);

however i still get execution time and sql info appended at the end of the page. 

I can see that the code does have some effect - &quot;print_r&quot; calls  do not work which is  behavior consistent with debug level 0 

am i missing something?

i am running 1.1.12.4205</description>
		<content:encoded><![CDATA[<p>does not quite work for me </p>
<p>I am trying to suppress debug output on some of the actions while leaving application-wide debug level at 2. </p>
<p>so i included the following line inside actions i so not want want to output debug info:</p>
<p>Configure::write(&#8216;debug&#8217;, &#8217;0&#8242;);</p>
<p>however i still get execution time and sql info appended at the end of the page. </p>
<p>I can see that the code does have some effect &#8211; &#8220;print_r&#8221; calls  do not work which is  behavior consistent with debug level 0 </p>
<p>am i missing something?</p>
<p>i am running 1.1.12.4205</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6313</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 24 Apr 2007 15:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6313</guid>
		<description>@wluigi: Yes, that&#039;s correct. The same values as used in app/config/core.php for the DEBUG constant.</description>
		<content:encoded><![CDATA[<p>@wluigi: Yes, that&#8217;s correct. The same values as used in app/config/core.php for the DEBUG constant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wluigi</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6312</link>
		<dc:creator>wluigi</dc:creator>
		<pubDate>Tue, 24 Apr 2007 15:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6312</guid>
		<description>Tell me if I m wrong, but you have to write

Configure::write(&#039;debug&#039;, &#039;2&#039;);

at the end of your action to see the sql queries

if you end up with

Configure::write(&#039;debug&#039;, &#039;0&#039;);

no query is displayed</description>
		<content:encoded><![CDATA[<p>Tell me if I m wrong, but you have to write</p>
<p>Configure::write(&#8216;debug&#8217;, &#8217;2&#8242;);</p>
<p>at the end of your action to see the sql queries</p>
<p>if you end up with</p>
<p>Configure::write(&#8216;debug&#8217;, &#8217;0&#8242;);</p>
<p>no query is displayed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6259</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 20 Apr 2007 15:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6259</guid>
		<description>@Dejan, kojote: Thanks for your comments!

@kojote: You should not debug on live servers ;-)</description>
		<content:encoded><![CDATA[<p>@Dejan, kojote: Thanks for your comments!</p>
<p>@kojote: You should not debug on live servers ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kojote</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6252</link>
		<dc:creator>kojote</dc:creator>
		<pubDate>Thu, 19 Apr 2007 08:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6252</guid>
		<description>Jesus, please don&#039;t edit core all the time, write a simple 
if($_GET[&#039;debug&#039;]) or a session base debug activator with 
a cookie-extension for firefox. best way to activate debugging on live servers by the way.

nice snippet anyway :)</description>
		<content:encoded><![CDATA[<p>Jesus, please don&#8217;t edit core all the time, write a simple<br />
if($_GET['debug']) or a session base debug activator with<br />
a cookie-extension for firefox. best way to activate debugging on live servers by the way.</p>
<p>nice snippet anyway :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dejan Ranisavljevic</title>
		<link>http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/comment-page-1/#comment-6247</link>
		<dc:creator>Dejan Ranisavljevic</dc:creator>
		<pubDate>Wed, 18 Apr 2007 19:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/18/how-to-enabledisable-debug-messages-for-a-certain-action/#comment-6247</guid>
		<description>Nice snippet, i have never before used Configure class. So now i see the point of it ...

no more editing core.php all the time; :)

Thanks.</description>
		<content:encoded><![CDATA[<p>Nice snippet, i have never before used Configure class. So now i see the point of it &#8230;</p>
<p>no more editing core.php all the time; :)</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
