<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dovyski &#187; debug</title>
	<atom:link href="http://www.dovyski.com/tag/debug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dovyski.com</link>
	<description>Pointless things somehow useful</description>
	<lastBuildDate>Fri, 07 May 2010 02:42:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SWFConsole: enhance the power of your Flash games</title>
		<link>http://www.dovyski.com/2009/07/swfconsole-enhance-the-power-of-your-flash-games/</link>
		<comments>http://www.dovyski.com/2009/07/swfconsole-enhance-the-power-of-your-flash-games/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 01:51:03 +0000</pubDate>
		<dc:creator>Dovyski</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://www.dovyski.com/?p=2098</guid>
		<description><![CDATA[Sometime ago I was working on a Flash game and I had to output some information to the console. That's a very easy task when you use trace() and the Flash IDE, but things get a little harder when you &#8230; <a href="http://www.dovyski.com/2009/07/swfconsole-enhance-the-power-of-your-flash-games/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-2077" title="Terminal" src="http://www.dovyski.com/wp-content/uploads/2009/07/Terminal.png" alt="Terminal" width="177" height="169" />Sometime ago I was working on a Flash game and I had to output some information to the console. That's a very easy task when you use <em>trace() </em>and the Flash IDE, but things get a little harder when you need to output text inside the browser.</p>
<p>Looking for a tool that could help me output text, I found <a title="SWFConsole" href="http://rohanlatimer.com.au/swfconsole/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/rohanlatimer.com.au/swfconsole/?referer=');">SWFConsole</a>.  It is a free developer tool for Flash AS3 projects that gives you output in all environments, not just the IDE. You can type commands in order  to manipulate Movieclips in the stage,  such as <em><em>myMovieclip.alpha = 0.3</em></em>.</p>
<p><a title="SWFConsole" href="http://rohanlatimer.com.au/swfconsole/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/rohanlatimer.com.au/swfconsole/?referer=');">SWFConsole</a> also has a built in resource monitor that shows FPS and memory usage, pretty useful for game developers. I miss some features as listeners to handle custom commands and a method to "enable/disable" the console instead of  showing or hiding  it, but it does not make  the tool less useful.</p>
<p>If you are a Flash game developer, SWFConsole can make your life easier!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dovyski.com/2009/07/swfconsole-enhance-the-power-of-your-flash-games/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling and debugging PHP</title>
		<link>http://www.dovyski.com/2009/04/profiling-and-debugging-php/</link>
		<comments>http://www.dovyski.com/2009/04/profiling-and-debugging-php/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 04:59:19 +0000</pubDate>
		<dc:creator>Dovyski</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[profiling]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.dovyski.com/?p=83</guid>
		<description><![CDATA[Reviewing the code is an important task every programmer must (or should) perform. Sometimes the program you have just coded looks nice and fast, because all the tests you have performed using your well-controlled devel0pment sandbox showed no errors. Unless &#8230; <a href="http://www.dovyski.com/2009/04/profiling-and-debugging-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><small><strong></strong></small></p>
<p>Reviewing the code is an important task every programmer must (or should) perform. Sometimes the program you have just coded looks nice and fast, because all the tests you have performed using your well-controlled devel0pment sandbox showed no errors.</p>
<p>Unless you are a god when programming, you may have left some little performance tweaks behind. Most of the time you can replace several method calls with the returned value stored in a variable, or avoiding nested for/whiles, or freeing a result set in order to save some memory, etc. In the end, all those tweaks can make the difference between a smooth user experience and an extremely painful development problem.</p>
<p>If you are a PHP developer, you can use the free <a title="PHP Quick Profiler" href="http://particletree.com/features/php-quick-profiler/" onclick="pageTracker._trackPageview('/outgoing/particletree.com/features/php-quick-profiler/?referer=');">PHP Quick Profiler (PQP)</a> to help profiling and debugging your code. No more echoing vars, objects or queries in order to find performance mistakes. Using an automated tool to show you what is going on, you can save a lot of time and ensure your app is stable and fast. I read about PQP at <a href="http://www.webappers.com/2009/04/25/php-quick-profiler-firebug-for-php/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.webappers.com/2009/04/25/php-quick-profiler-firebug-for-php/?referer=');">WebAppers</a> these days. They also have a screenshot (below) and a <a href="http://particletree.com/examples/pqp/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/particletree.com/examples/pqp/?referer=');">link for a demo</a>.</p>
<p><a title="PHP Quick Profiler" href="http://particletree.com/features/php-quick-profiler/" onclick="pageTracker._trackPageview('/outgoing/particletree.com/features/php-quick-profiler/?referer=');"><img class="aligncenter" src="http://www.webappers.com/img/2009/04/php-profiler.jpg" alt="PHP Profiler" /></a></p>
<p>If you want more options for profiling and debugging, I recommend <a href="http://www.xdebug.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.xdebug.org/?referer=');">Xdebug</a>, which is a very powerful tool. We have been using it at <a href="http://www.decadium.com" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.decadium.com?referer=');">Decadium</a> for a long time.  Some of the features include stack traces and function traces in error messages (with full parameter display, function/file name and line indications), information about memory allocation and protection for infinite recursions.</p>
<p>Xdebug is also free and has support for Windows and Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dovyski.com/2009/04/profiling-and-debugging-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
