<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — HOWTO: Enable DEBUG mode]]></title>
		<link>https://punbb.informer.com/forums/topic/2658/howto-enable-debug-mode/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/2658/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in HOWTO: Enable DEBUG mode.]]></description>
		<lastBuildDate>Wed, 04 Jan 2017 07:33:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/156758/#p156758</link>
			<description><![CDATA[<p>anyway / any mod to have this done at admin panel?&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="https://breakingnewstoday.in/tag/sexless-marriage/"><span style="color: white">Sexless marriage</span></a></p>]]></description>
			<author><![CDATA[null@example.com (mukul.wpx)]]></author>
			<pubDate>Wed, 04 Jan 2017 07:33:46 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/156758/#p156758</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/91008/#p91008</link>
			<description><![CDATA[<p>Should we fix for every edition of PunBB?</p>]]></description>
			<author><![CDATA[null@example.com (PunBG)]]></author>
			<pubDate>Mon, 02 Apr 2007 01:31:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91008/#p91008</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/88186/#p88186</link>
			<description><![CDATA[<p>When you run into an error, people can see the query that gives the error.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Fri, 23 Feb 2007 19:52:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/88186/#p88186</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/88184/#p88184</link>
			<description><![CDATA[<p>Looks neat to have it on; what&#039;s the downside to showing a few statistics about your server?</p>]]></description>
			<author><![CDATA[null@example.com (CReatiVe4w3)]]></author>
			<pubDate>Fri, 23 Feb 2007 19:26:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/88184/#p88184</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/84160/#p84160</link>
			<description><![CDATA[<div class="quotebox"><cite>af3 wrote:</cite><blockquote><p>anyway / any mod to have this done at admin panel?</p></blockquote></div><p>Thing is, we only really need debug mode when there&#039;s a problem and if it&#039;s enabled via the admin interface and we, for some reason, can&#039;t access the admin interface, we&#039;re screwed.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Wed, 03 Jan 2007 09:58:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/84160/#p84160</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/84146/#p84146</link>
			<description><![CDATA[<p>Nope: there really isn&#039;t a need to switch it on/off enough to warrant a mod (plus, the mod couldn&#039;t rely on the database to store its information)</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Wed, 03 Jan 2007 01:45:53 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/84146/#p84146</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/84145/#p84145</link>
			<description><![CDATA[<p>anyway / any mod to have this done at admin panel?</p>]]></description>
			<author><![CDATA[null@example.com (af3)]]></author>
			<pubDate>Wed, 03 Jan 2007 01:44:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/84145/#p84145</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/30480/#p30480</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Because the generation time really isn&#039;t interesting other than when debugging/developing.</p></blockquote></div><p>Oh well, if it amuses some people to show off speed (which I have to agree is not too interesting), then that&#039;s fine.</p>]]></description>
			<author><![CDATA[null@example.com (albn)]]></author>
			<pubDate>Thu, 13 Jan 2005 15:12:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/30480/#p30480</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/26876/#p26876</link>
			<description><![CDATA[<p>Because the generation time really isn&#039;t interesting other than when debugging/developing.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Wed, 08 Dec 2004 10:33:27 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/26876/#p26876</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/26838/#p26838</link>
			<description><![CDATA[<p>Why not just MOD the footer to see just the milliseconds info without enabling Pun Debug mode?&nbsp; Would that not solve the safety issue.</p><p>Changes /footer.php in the punbb root (do save a backup first PLEASE!)</p><p>Look for:<br /></p><div class="codebox"><pre><code>// Display debug info (if enabled/defined)
if (defined(&#039;PUN_DEBUG&#039;))
{
    // Calculate script generation time
    list($usec, $sec) = explode(&#039; &#039;, microtime());
    $time_diff = sprintf(&#039;%.3f&#039;, ((float)$usec + (float)$sec) - $pun_start);

    echo &quot;\t\t\t\t\t\t&quot;.&#039;&lt;br&gt;[ &lt;span class=&quot;punclosed&quot;&gt;Generated in &#039;.$time_diff.&#039; seconds, &#039;.$db-&gt;get_num_queries().&#039; queries executed&lt;/span&gt; ]&#039;.&quot;\n&quot;;
}</code></pre></div><p>Change to:<br /></p><div class="codebox"><pre><code>// Display debug info (if enabled/defined)
// if (defined(&#039;PUN_DEBUG&#039;))
// {
    // Calculate script generation time
    list($usec, $sec) = explode(&#039; &#039;, microtime());
    $time_diff = sprintf(&#039;%.3f&#039;, ((float)$usec + (float)$sec) - $pun_start);

    echo &quot;\t\t\t\t\t\t&quot;.&#039;&lt;br&gt;[ &lt;span class=&quot;punclosed&quot;&gt;Generated in &#039;.$time_diff.&#039; seconds, &#039;.$db-&gt;get_num_queries().&#039; queries executed&lt;/span&gt; ]&#039;.&quot;\n&quot;;
// }</code></pre></div><p>In text: I&#039;ve commented out (using &#039;//&#039;) the check for debug mode... if you have your backup, you could also just remove the commented lines in the replacement code.</p>]]></description>
			<author><![CDATA[null@example.com (TomTester)]]></author>
			<pubDate>Tue, 07 Dec 2004 22:48:26 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/26838/#p26838</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/26119/#p26119</link>
			<description><![CDATA[<p>Fair enough. Your style is different than mine, that&#039;s ok;)</p>]]></description>
			<author><![CDATA[null@example.com (rain)]]></author>
			<pubDate>Tue, 30 Nov 2004 04:57:09 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/26119/#p26119</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/26037/#p26037</link>
			<description><![CDATA[<p>rain: The idea is that people generally shouldn&#039;t have it enabled. People think it&#039;s cool to show off how many milliseconds the page was generated in, but they don&#039;t realize debug mode will also reveal things about their server they might not want to disclose in the event of a failure.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sun, 28 Nov 2004 17:37:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/26037/#p26037</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/26035/#p26035</link>
			<description><![CDATA[<p>but you only enable it when you hit a problem...</p>]]></description>
			<author><![CDATA[null@example.com (Connorhd)]]></author>
			<pubDate>Sun, 28 Nov 2004 15:45:02 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/26035/#p26035</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/26032/#p26032</link>
			<description><![CDATA[<p>Rickard,</p><p>It might be a better idea to suggest adding the line to config.php. For example, I have a local development copy of my PunBB board (because I&#039;m modifying it) and the remote working copy. If PUN_DEBUG is included in common.php then I would (potentially) have to change that file every time I upload a new version to the server.</p>]]></description>
			<author><![CDATA[null@example.com (rain)]]></author>
			<pubDate>Sun, 28 Nov 2004 14:51:40 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/26032/#p26032</guid>
		</item>
		<item>
			<title><![CDATA[HOWTO: Enable DEBUG mode]]></title>
			<link>https://punbb.informer.com/forums/post/5489/#p5489</link>
			<description><![CDATA[<p>When DEBUG is enabled, PunBB will display</p><p>- more detailed error messages if/when something goes wrong.<br />- script generation time in the footer.<br />- no. of queries executed in the footer.</p><br /><p>Enable DEBUG by opening up include/common.php, finding (line 26)</p><p>//define(&#039;PUN_DEBUG&#039;, 1);</p><p>And removing the two slashes so that it looks like this:</p><p>define(&#039;PUN_DEBUG&#039;, 1);</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Sun, 07 Sep 2003 13:37:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/5489/#p5489</guid>
		</item>
	</channel>
</rss>
