<?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>blog.betabong.com &#187; Debug</title>
	<atom:link href="http://blog.betabong.com/tag/debug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.betabong.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 10:45:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Switch Flash Browser Plugin on Mac OS X</title>
		<link>http://blog.betabong.com/2009/04/27/switch-flash-browser-plugin-mac/</link>
		<comments>http://blog.betabong.com/2009/04/27/switch-flash-browser-plugin-mac/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 13:12:35 +0000</pubDate>
		<dc:creator>betabong</dc:creator>
				<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://blog.betabong.com/?p=273</guid>
		<description><![CDATA[<p>Sometimes you need to test your Flash stuff with different plugin versions. Even if you just want to run some <a href="/2009/04/05/flash-debug-speed/">performance tests</a>, it is very useful to switch to the release player (see below for another example).</p>
<p>For <a&#8230; <a href="http://blog.betabong.com/2009/04/27/switch-flash-browser-plugin-mac/" class="read_more">Read more</a></p>
Related posts:<ol>
<li><a href='http://blog.betabong.com/2009/04/05/flash-debug-speed/' rel='bookmark' title='Flash Debug Speed'>Flash Debug Speed</a></li>
<li><a href='http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/' rel='bookmark' title='Test Flex/Flash throttled (aka Simulate Download)'>Test Flex/Flash throttled (aka Simulate Download)</a></li>
<li><a href='http://blog.betabong.com/2008/08/22/flash-player-10-i-love-speed/' rel='bookmark' title='Flash Player 10 – I love speed'>Flash Player 10 – I love speed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to test your Flash stuff with different plugin versions. Even if you just want to run some <a href="/2009/04/05/flash-debug-speed/">performance tests</a>, it is very useful to switch to the release player (see below for another example).</p>
<p>For <a href="http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php">windows there is a neat Firefox Plugin</a> that makes switching quite a snap. <a href="http://sephiroth.it/firefox/flash_switcher/">On Mac there is one too</a> – I haven&#8217;t tested it, but it&#8217;s supposed to work (though I&#8217;m not too sure about that when I read <a href="http://www.sephiroth.it/weblog/archives/2006/11/flash_switcher_for_osx.php#comments">these comments here</a>). Still I prefer to work with Safari and I kind of dislike the thought of starting Firefox to just switch Plugins.</p>
<p><a href="http://code.google.com/p/wspluginswitcher/" style="float: left; display: block; margin-right: 10pt; margin-bottom: 10pt;"><img src="http://blog.betabong.com/wp-content/uploads/2009/04/wspluginswitcher-icon.jpg" alt="wspluginswitcher-icon" title="wspluginswitcher-icon" width="128" height="128" class="alignleft size-full wp-image-274" /></a>Fortunately I&#8217;ve found another solution: <a href="http://code.google.com/p/wspluginswitcher/">WSPluginSwitcher</a>. This one comes as a Cocoa app and once configured (you really should <a href="http://code.google.com/p/wspluginswitcher/wiki/Setup">read this wiki page</a>), it works real well for me. Also they have <a href="http://code.google.com/p/wspluginswitcher/downloads/list">prepared plugin versions for you to download</a> (though the <a href="http://www.adobe.com/support/flashplayer/downloads.html">most recents</a> are missing, but no big deal really).</p>
<p>As for the speed tests, let me just give you another example (impressing enough for me to wanna switch players for real world testing).</p>
<p>In Debug Player:</p>
<pre>
method...................................................ttl ms...avg ms
tare [2]                                                      0     0.00
CSSFastParser                                               603   120.60
CSSRegExpParserFast                                         987   197.40
CSSRegExpParserFastAdvanced                                1457   291.40
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
</pre>
<p>In Release Player:</p>
<pre>
method...................................................ttl ms...avg ms
tare [2]                                                      0     0.00
CSSFastParser                                               354    70.80
CSSRegExpParserFast                                         972   194.40
CSSRegExpParserFastAdvanced                                1469   293.80
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
</pre>
<p>Both 10.0.22.87, and exported as release swf. Oh, and by the way tested with another useful tool from Grant Skinner: <a href="http://www.gskinner.com/blog/archives/2009/04/as3_performance.html">AS3 Performance Testing Harness</a>.</p>
<p>Related posts:<ol>
<li><a href='http://blog.betabong.com/2009/04/05/flash-debug-speed/' rel='bookmark' title='Flash Debug Speed'>Flash Debug Speed</a></li>
<li><a href='http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/' rel='bookmark' title='Test Flex/Flash throttled (aka Simulate Download)'>Test Flex/Flash throttled (aka Simulate Download)</a></li>
<li><a href='http://blog.betabong.com/2008/08/22/flash-player-10-i-love-speed/' rel='bookmark' title='Flash Player 10 – I love speed'>Flash Player 10 – I love speed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.betabong.com/2009/04/27/switch-flash-browser-plugin-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Debug Speed</title>
		<link>http://blog.betabong.com/2009/04/05/flash-debug-speed/</link>
		<comments>http://blog.betabong.com/2009/04/05/flash-debug-speed/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 00:49:46 +0000</pubDate>
		<dc:creator>betabong</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://blog.betabong.com/?p=225</guid>
		<description><![CDATA[<p>I did some speed tests today, comparing two string parsing methods. And I&#8217;ve made some very interesting discoveries: The execution speed between SWF compiled for debugging and those compiled without differs.</p>
<p>Ha! Okay, that&#8217;s not that much of news (even&#8230; <a href="http://blog.betabong.com/2009/04/05/flash-debug-speed/" class="read_more">Read more</a></p>
Related posts:<ol>
<li><a href='http://blog.betabong.com/2009/04/27/switch-flash-browser-plugin-mac/' rel='bookmark' title='Switch Flash Browser Plugin on Mac OS X'>Switch Flash Browser Plugin on Mac OS X</a></li>
<li><a href='http://blog.betabong.com/2008/08/22/flash-player-10-i-love-speed/' rel='bookmark' title='Flash Player 10 – I love speed'>Flash Player 10 – I love speed</a></li>
<li><a href='http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/' rel='bookmark' title='Test Flex/Flash throttled (aka Simulate Download)'>Test Flex/Flash throttled (aka Simulate Download)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I did some speed tests today, comparing two string parsing methods. And I&#8217;ve made some very interesting discoveries: The execution speed between SWF compiled for debugging and those compiled without differs.</p>
<p>Ha! Okay, that&#8217;s not that much of news (even for me). But what astonishes me is how much this speed gap can be, especially when it comes to massive data calculations. I somehow always had a somewhat 20 percent speed decrease in mind (I was just presuming, me dumb). But for a 3d particle test we&#8217;re talking factor 8!!</p>
<p>Now this made me curious&#8230; so I&#8217;ve tested with Debug and Release Player both debug and release SWFs:</p>
<p><strong>Debug Player running Debug SWF</strong></p>
<p><strong><a href="http://blog.betabong.com/wp-content/uploads/2009/04/picture-11.png" rel="lightbox[225]"><img class="alignnone size-full wp-image-226" title="Flash Debug in Debug" src="http://blog.betabong.com/wp-content/uploads/2009/04/picture-11.png" alt="Flash Debug in Debug" width="428" height="185" /></a></strong></p>
<p><strong>Debug Player running Release SWF</strong></p>
<p><strong><a href="http://blog.betabong.com/wp-content/uploads/2009/04/picture-9.png" rel="lightbox[225]"><img class="alignnone size-full wp-image-227" title="Release in Debug" src="http://blog.betabong.com/wp-content/uploads/2009/04/picture-9.png" alt="Release in Debug" width="428" height="185" /></a></strong></p>
<p><strong>Release Player running Debug SWF</strong></p>
<p><strong><a href="http://blog.betabong.com/wp-content/uploads/2009/04/picture-12.png" rel="lightbox[225]"><img class="alignnone size-full wp-image-228" title="Debug in Release" src="http://blog.betabong.com/wp-content/uploads/2009/04/picture-12.png" alt="Debug in Release" width="427" height="181" /></a></strong></p>
<p><strong>Release Player running Release SWF</strong></p>
<p><strong><a href="http://blog.betabong.com/wp-content/uploads/2009/04/picture-13.png" rel="lightbox[225]"><img class="alignnone size-full wp-image-229" title="Release in Release" src="http://blog.betabong.com/wp-content/uploads/2009/04/picture-13.png" alt="Release in Release" width="427" height="185" /></a></strong></p>
<p><strong>A few conclusions:</strong></p>
<ul>
<li><strong>Never release a SWF file with debug code</strong> (or otherwise said: put only stuff online from bin-release, never bin-debug). Though common users won&#8217;t notice the speed decrease, your friendly flash developers may, at least if you&#8217;re app is somewhat cpu intensive. And of course: debug SWF are much bigger in size (just in case you give a fuck about flash devs ;-)</li>
<li><strong>Speed tests should be played in the release player.</strong> Why? After all, I wouldn&#8217;t care if the relation would stay the same. Usually you just need to know how much faster one thing is compared to the other one, so that would do it. But unfortunately the ratio won&#8217;t always be the same. In the above example the ration is 3.66 for debug and 2.92 for release. And it can differ muuuuch more.</li>
</ul>
<p>The last one bugs me quite a bit. It&#8217;s just a pain in the ass to export a release build each time you wanna compare performance. And it also means you can&#8217;t do quick&#8217;n'dirty trace outputs for the time result (not a biggy if you&#8217;re testing within a Flex project though).</p>
<p>So here we go with <strong>two wishes for Adobe</strong>:</p>
<ul>
<li>Let us quickly test release builds within Flex Builder (a simple command would do it – I thought it might be «Run Testapp» (instead of «Debug Testapp»), but that just doesn&#8217;t bring up the Debugger (and same speed)</li>
<li>An option to turn off debugging mode in Debug Player!!! That would solve almost all problems, and we could also use our Plugin for normal browsing without performance penalties (is this why Youtube eats so much cpu here?</li>
</ul>
<p>Related posts:<ol>
<li><a href='http://blog.betabong.com/2009/04/27/switch-flash-browser-plugin-mac/' rel='bookmark' title='Switch Flash Browser Plugin on Mac OS X'>Switch Flash Browser Plugin on Mac OS X</a></li>
<li><a href='http://blog.betabong.com/2008/08/22/flash-player-10-i-love-speed/' rel='bookmark' title='Flash Player 10 – I love speed'>Flash Player 10 – I love speed</a></li>
<li><a href='http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/' rel='bookmark' title='Test Flex/Flash throttled (aka Simulate Download)'>Test Flex/Flash throttled (aka Simulate Download)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.betabong.com/2009/04/05/flash-debug-speed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Test Flex/Flash throttled (aka Simulate Download)</title>
		<link>http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/</link>
		<comments>http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 15:52:55 +0000</pubDate>
		<dc:creator>betabong</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Flex Builder]]></category>

		<guid isPermaLink="false">http://blog.betabong.com/?p=161</guid>
		<description><![CDATA[<p>Most of the Flash application deal with server side data like images, xml files etc. We tend to forget about that because the default Run or Debug commands in Flex will open a local html file (and also because we&#8230; <a href="http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/" class="read_more">Read more</a></p>
Related posts:<ol>
<li><a href='http://blog.betabong.com/2008/12/03/test-movie-from-flex-to-flash-easy-way/' rel='bookmark' title='Test Movie from Flex to Flash (easy way)'>Test Movie from Flex to Flash (easy way)</a></li>
<li><a href='http://blog.betabong.com/2008/11/29/flex-builder-t-flash-ide/' rel='bookmark' title='Develop in Flex Builder, publish in Flash IDE (Mac OS X)'>Develop in Flex Builder, publish in Flash IDE (Mac OS X)</a></li>
<li><a href='http://blog.betabong.com/2009/02/13/embed-assets-in-flash-project/' rel='bookmark' title='Embed Assets in Flash Project'>Embed Assets in Flash Project</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Most of the Flash application deal with server side data like images, xml files etc. We tend to forget about that because the default Run or Debug commands in Flex will open a local html file (and also because we developers often have quite a nice internet connection when testing remotely). Thus all data is loaded nearly instantely.</p>
<p>In Flash we have a menu command called <strong>«Simulate Download»</strong> to see how things run at different bandwidth situations. <strong>But how to achieve this in Flex?</strong></p>
<p>I&#8217;ve been using Sloppy for a long time. It&#8217;s little java app that can be started via a simple web click. It&#8217;s really easy to use and does very well what it does. For debugging your app (your flash website) throttled in Flex Builder simply follow these steps:</p>
<p> </p>
<ol>
<li><a href="http://www.dallaway.com/sloppy/">Open the <strong>Sloppy website</strong></a></li>
<li>Click the little <strong>Sloppy icon</strong>:<br />
<a href="http://blog.betabong.com/wp-content/uploads/2008/12/picture-10.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-162" title="picture-10" src="http://blog.betabong.com/wp-content/uploads/2008/12/picture-10.png" alt="" width="233" height="41" /><br />
</a></li>
<li>A «sloppy.jnlp» file is downloaded. <strong>Open it</strong> if doesn&#8217;t open automatically.</li>
<li>The actual application will be downloaded and started. If it asks you to trust: <strong>trust!</strong> :-)</li>
<li><strong>Enter the address</strong> of your html file in the bin-debug or bin-release folder. It should be a webserver address. I usually create a <a href="http://www.macupdate.com/info.php/id/10433/symboliclinker">symbolic link</a> of my project directory and put it into my local webserver directory.<br />
<a href="http://blog.betabong.com/wp-content/uploads/2008/12/picture-11.png" rel="lightbox[161]"></a><a href="http://blog.betabong.com/wp-content/uploads/2008/12/picture-11.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-163" title="picture-11" src="http://blog.betabong.com/wp-content/uploads/2008/12/picture-11.png" alt="" width="501" height="453" /></a></li>
<li><strong>Click «Go»</strong> – this will start the Sloppy proxy and open the page in your default browser. </li>
<li><strong>Copy the address</strong> from the browser window (usually http://127.0.0.1:7569/your/path)<br />
<a href="http://blog.betabong.com/wp-content/uploads/2008/12/picture-12.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-164" title="picture-12" src="http://blog.betabong.com/wp-content/uploads/2008/12/picture-12.png" alt="" width="375" height="34" /></a></li>
<li>You may close the window. Go to Flex Builder and <strong>open the project properties</strong> (right click on project folder, last item). In an Actionscript Project, switch to ActionScript Build Path.<br />
<a href="http://blog.betabong.com/wp-content/uploads/2008/12/picture-14.png" rel="lightbox[161]"><img class="alignnone size-medium wp-image-165" title="picture-14" src="http://blog.betabong.com/wp-content/uploads/2008/12/picture-14-300x289.png" alt="" width="300" height="289" /></a> </li>
<li>Enter the copied address into <strong>«Output folder URL»</strong>, clear the html name (e.g. App.html).<br />
<a href="http://blog.betabong.com/wp-content/uploads/2008/12/picture-15.png" rel="lightbox[161]"><img class="alignnone size-full wp-image-166" title="picture-15" src="http://blog.betabong.com/wp-content/uploads/2008/12/picture-15.png" alt="" width="423" height="40" /></a></li>
<li>Click «OK» and <strong>you&#8217;re done</strong>. You can now Run and Debug as if your website was hosted on some server and you had a 256K ADSL connection (instead of your T1).</li>
</ol>
<p>Note: I tried to automate the whole thing (with Ant of course) and succeeded to a certain limit. What I did was download <a href="http://code.google.com/p/sloppy/">Sloopy&#8217;s source code</a> (java), modify it so it can handle more terminal attributes and build the  .jar file. This can be run on command line, which will start the sloopy server. So I created an ant file that does all that for me, but this ant file would only be cool, if it could also trigger the run or debug commands and modify the output folder url. I haven&#8217;t found a way (at least not a satisfying one) to do this, so I might just follow the manual street for once ;)</p>
<p>Another note: If you are windows user, you might wanna try this Firefox plugin: <a href="https://addons.mozilla.org/en-US/firefox/addon/5917">Firefox Throttle</a></p>
<p>Related posts:<ol>
<li><a href='http://blog.betabong.com/2008/12/03/test-movie-from-flex-to-flash-easy-way/' rel='bookmark' title='Test Movie from Flex to Flash (easy way)'>Test Movie from Flex to Flash (easy way)</a></li>
<li><a href='http://blog.betabong.com/2008/11/29/flex-builder-t-flash-ide/' rel='bookmark' title='Develop in Flex Builder, publish in Flash IDE (Mac OS X)'>Develop in Flex Builder, publish in Flash IDE (Mac OS X)</a></li>
<li><a href='http://blog.betabong.com/2009/02/13/embed-assets-in-flash-project/' rel='bookmark' title='Embed Assets in Flash Project'>Embed Assets in Flash Project</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.betabong.com/2008/12/06/test-flex-throttled-simulate-download/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: blog.betabong.com @ 2012-02-05 05:55:28 -->
