<?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: 5 important tips for Debugging PHP Code</title>
	<atom:link href="http://phpcollection.com/5-php-debug-tips-important-for-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/</link>
	<description>PHP Tutorials collection</description>
	<lastBuildDate>Mon, 07 May 2012 05:11:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: PHP Debugging Tips &#124; Design Zombie</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-376</link>
		<dc:creator>PHP Debugging Tips &#124; Design Zombie</dc:creator>
		<pubDate>Sun, 16 Jan 2011 23:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-376</guid>
		<description>[...] from infinite recursions happening 5) Use print and echo statements beforehand at critical points http://phpcollection.com/5-php-debug-tips-important-for-debugging.html 6) firephp instead of echos. How to use          This entry was posted in Servers &amp; [...]</description>
		<content:encoded><![CDATA[<p>[...] from infinite recursions happening 5) Use print and echo statements beforehand at critical points <a href="http://phpcollection.com/5-php-debug-tips-important-for-debugging.html" rel="nofollow">http://phpcollection.com/5-php-debug-tips-important-for-debugging.html</a> 6) firephp instead of echos. How to use          This entry was posted in Servers &amp; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurav</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-258</link>
		<dc:creator>saurav</dc:creator>
		<pubDate>Thu, 24 Jun 2010 16:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-258</guid>
		<description>s</description>
		<content:encoded><![CDATA[<p>s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivo Roper</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-255</link>
		<dc:creator>Ivo Roper</dc:creator>
		<pubDate>Fri, 28 May 2010 04:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-255</guid>
		<description>If you have a complex project going, it&#039;s helpful to extend item #4 to use a range of $debug_level values (e.g. 0 to 3) so that you can include a boatload of debug messages when you need to see everything at level 3, and use level 1 debug messages when you want to see only a few specific items of your work in progress.

You can also use a global scope function like debug_print( 2, &quot;$foo is dead&quot;) instead of a variable, so you can access it within class scope without global declarations. The current level can be stored however you want, and only the debug function needs to know how and where.

I&#039;ve also thought about merging my logging and debug print functionality, but I don&#039;t need that currently / yet.</description>
		<content:encoded><![CDATA[<p>If you have a complex project going, it&#8217;s helpful to extend item #4 to use a range of $debug_level values (e.g. 0 to 3) so that you can include a boatload of debug messages when you need to see everything at level 3, and use level 1 debug messages when you want to see only a few specific items of your work in progress.</p>
<p>You can also use a global scope function like debug_print( 2, &#8220;$foo is dead&#8221;) instead of a variable, so you can access it within class scope without global declarations. The current level can be stored however you want, and only the debug function needs to know how and where.</p>
<p>I&#8217;ve also thought about merging my logging and debug print functionality, but I don&#8217;t need that currently / yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeanJA</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-254</link>
		<dc:creator>SeanJA</dc:creator>
		<pubDate>Sun, 16 May 2010 02:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-254</guid>
		<description>Well... good except to future proof your application, you should be coding to:
E_ALL &#124; E_STRICT</description>
		<content:encoded><![CDATA[<p>Well&#8230; good except to future proof your application, you should be coding to:<br />
E_ALL | E_STRICT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Php Ninza</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-236</link>
		<dc:creator>Php Ninza</dc:creator>
		<pubDate>Sun, 27 Sep 2009 07:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-236</guid>
		<description>Thanks Ricardo,

Appreciate the effort</description>
		<content:encoded><![CDATA[<p>Thanks Ricardo,</p>
<p>Appreciate the effort</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Soares de Lima</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-235</link>
		<dc:creator>Ricardo Soares de Lima</dc:creator>
		<pubDate>Sun, 27 Sep 2009 00:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-235</guid>
		<description>Hey! Article translated, here is the link:
http://hipercodigo.blogspot.com/2009/09/traducao-5-importantes-dicas-para.html

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey! Article translated, here is the link:<br />
<a href="http://hipercodigo.blogspot.com/2009/09/traducao-5-importantes-dicas-para.html" rel="nofollow">http://hipercodigo.blogspot.com/2009/09/traducao-5-importantes-dicas-para.html</a></p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Soares de Lima</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-234</link>
		<dc:creator>Ricardo Soares de Lima</dc:creator>
		<pubDate>Fri, 25 Sep 2009 02:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-234</guid>
		<description>Thanks Ninza! This is a great article to start with firephp (http://sixrevisions.com/web-development/how-to-debug-php-using-firefox-with-firephp/). Until the weekend I&#039;ll get your article translated.</description>
		<content:encoded><![CDATA[<p>Thanks Ninza! This is a great article to start with firephp (<a href="http://sixrevisions.com/web-development/how-to-debug-php-using-firefox-with-firephp/" rel="nofollow">http://sixrevisions.com/web-development/how-to-debug-php-using-firefox-with-firephp/</a>). Until the weekend I&#8217;ll get your article translated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Php Ninza</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-233</link>
		<dc:creator>Php Ninza</dc:creator>
		<pubDate>Thu, 24 Sep 2009 19:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-233</guid>
		<description>@Ricardo

Sure you can , Also if you can link up some articles on firephp as well that would be very useful to our readers</description>
		<content:encoded><![CDATA[<p>@Ricardo</p>
<p>Sure you can , Also if you can link up some articles on firephp as well that would be very useful to our readers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Soares de Lima</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-232</link>
		<dc:creator>Ricardo Soares de Lima</dc:creator>
		<pubDate>Thu, 24 Sep 2009 17:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-232</guid>
		<description>Nice tips! One tool that I think is really valuable is FirePHP (http://www.firephp.org/), it&#039;s better than using echo statements to show values.
And if you don&#039;t mind, I&#039;ll translate your article to portuguese in my blog, crediting your article off course.</description>
		<content:encoded><![CDATA[<p>Nice tips! One tool that I think is really valuable is FirePHP (<a href="http://www.firephp.org/" rel="nofollow">http://www.firephp.org/</a>), it&#8217;s better than using echo statements to show values.<br />
And if you don&#8217;t mind, I&#8217;ll translate your article to portuguese in my blog, crediting your article off course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://phpcollection.com/5-php-debug-tips-important-for-debugging/comment-page-1/#comment-231</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Mon, 31 Aug 2009 15:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpcollection.com/?p=727#comment-231</guid>
		<description>These are some really good tips.  The one thing I would add though is in relation to number 4.  There really needs to be a third level of debugging for when the site is live.  The debug data can then be commented out into the HTML instead.  For example:

= 1) {
        if ($debug_check == 1) print &quot;&quot;;
}
?&gt;</description>
		<content:encoded><![CDATA[<p>These are some really good tips.  The one thing I would add though is in relation to number 4.  There really needs to be a third level of debugging for when the site is live.  The debug data can then be commented out into the HTML instead.  For example:</p>
<p>= 1) {<br />
        if ($debug_check == 1) print &#8220;&#8221;;<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

