<?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>Nicolas Schudel &#187; Debugging</title>
	<atom:link href="http://nicolasschudel.name/tag/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicolasschudel.name</link>
	<description>Balancing Design and Development in Online Media</description>
	<lastBuildDate>Sun, 09 May 2010 08:42:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>1001 Ways to Debug in Flash</title>
		<link>http://nicolasschudel.name/1001-ways-to-debug-in-flash/</link>
		<comments>http://nicolasschudel.name/1001-ways-to-debug-in-flash/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 16:10:26 +0000</pubDate>
		<dc:creator>Nicolas</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://nicolasschudel.name/?p=15</guid>
		<description><![CDATA[<p>I have been looking around at all the different ways to debug content when developing Flash applications. The Flex folks already have a decent way of doing this, since the debug version of the Flash player communicates everything back to the Flexbuilder IDE. In Flash it's not that easy. As soon as the SWF is being run from within a browser all those <em>Trace statements</em> don't get through anymore.</p>]]></description>
			<content:encoded><![CDATA[<p>
I have checked out something like over 1000 different ways (number inflated for more drama) to debug Flash content within the browser and picked out the following 4 decent tools:
<ul>
<li><a href="http://www.powerflasher.de/">Powerflasher SOS</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3469">Flash Tracer Firefox Plugin</a></li>
<li><a href="http://osflash.org/xray">Xray</a></li>
<li><a href="http://code.google.com/p/flash-thunderbolt/">Thunderbolt</a></li>
</ul>
</p>
<p>
<strong>SOS</strong> looked sweet for a moment, because it used an XML Socket for the Logging statements. However I ran into some cross-domain issues on an external development server, so I put it aside. The <strong>Flash Tracer</strong> plugin for Firefox would have been sweeeet, but I gave up trying to get it work in Firefox 3. <strong>Xray</strong> is a debugging behemoth. I didn&#8217;t quit like having to include a connector component to my SWF. All these debuggers are pretty darn good, but they all involved some twisted procedures to get them up and running. I then stumbled across a super simple answer to my browser debugging issue. Why not just <a href="http://getfirebug.com/">do what the Javascript guys do</a>? <a href="http://labs.findsubstance.com/2008/02/26/firebugs-console-log-flash-debugging-made-easy/">Trace it out to Firebug</a> like this: 
</p>
<pre class="brush: jscript">
ExternalInterface.call(&quot;console.log&quot;,&quot;test&quot;);
</pre>
<p>
It&#8217;s so simple it can&#8217;t be wrong. There is just an issue that I have to decide if I want to use Flash&#8217;s built in <em>trace function</em> or the Firebug log while debugging. This however is taken care of buy <strong>Thunderbolt</strong>. It is a simple class that notices if Firebug is accessible and otherwise uses <em>trace</em>. Thunderbolt also has a &#8220;hide&#8221; option built in, for when the SWF goes live.
</p>
<h3>Conclusion</h3>
<p>
The Firebug / Thunderbolt combo is an elegant way to debug Flash content in both the Flash IDE and in Firefox. For a quick introduction to Thunderbolt, check out the Article <a href="http://www.websector.de/blog/2008/06/15/10-tips-and-tricks-using-thunderbolt-as3/">10 tips and tricks using ThunderBolt AS3</a>, by Thunderbolt&#8217;s author Jens Krause.
</p>]]></content:encoded>
			<wfw:commentRss>http://nicolasschudel.name/1001-ways-to-debug-in-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
