<?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>Kalen Gibbons &#187; debugging</title>
	<atom:link href="http://www.kalengibbons.com/blog/index.php/tag/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kalengibbons.com/blog</link>
	<description>The Dead Tree Blog</description>
	<lastBuildDate>Mon, 24 Oct 2011 20:43:10 +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>Update: Debugging Flex on a remote server</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/10/update-debugging-flex-on-a-remote-server/</link>
		<comments>http://www.kalengibbons.com/blog/index.php/2009/10/update-debugging-flex-on-a-remote-server/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 06:18:10 +0000</pubDate>
		<dc:creator>Kalen Gibbons</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Flex Builder]]></category>

		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=354</guid>
		<description><![CDATA[In a previous post I described a hack I used for debugging Flex applications on a remote server. Well, shorty after making that post I stumbled upon a much better way of doing this. Flex Builder actually has functionality built into it to allow remote debugging, you just need to know where to find it. [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://www.kalengibbons.com/blog/index.php/2009/07/debugging-flex-on-a-remote-server/">previous post</a> I described a hack I used for debugging Flex applications on a remote server.  Well, shorty after making that post I stumbled upon a much better way of doing this.  Flex Builder actually has functionality built into it to allow remote debugging, you just need to know where to find it.</p>
<ol>
<li>
First, compile a debug version of your application and upload it to your remote server.<br/><br/>
</li>
<li>
Second, go to the Run/Debug Settings panel by clicking Project >> Properties and selecting the Run/Debug Settings option from the list.  There, you should see another list of launch configurations for your project.  Most likely, you&#8217;ll only have one, which will match the name of your application.  Select it and click on the &#8220;Edit&#8230;&#8221; button.<br/><br/>
</li>
<li>
Next, find the &#8220;URL or path to launch&#8221; section and deselect the &#8220;Use defaults&#8221; checkbox.  Within the first text input titled &#8220;Debug,&#8221; place the URL to your remote server.  This URL can point to the SWF file or to an HTML page that loads the SWF, the debugger will connect either way.<br />
If you&#8217;re connecting to the SWF directly you may need to add ?debug=true to your querystring.  If you are connecting to an HTML page &#8211; make sure it loads the debug version of your SWF and not the release build.<br/><br/>
</li>
<li>
Finally, save your project properties and run the debugger as normal.  You&#8217;ll see that the debugger will connect to the SWF file on your remote server and you can debug the same way you would locally, using breakpoints, expressions and everything else.<br/><br />
<img alt="" src="/assets/images/remoteDebugging_launchConfiguration.png" title="Remote Debugging - Launch configuration window" class="aligncenter" width="662" height="528" />
</li>
<li>
That&#8217;s it&#8230; enjoy!<br/><br/></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.kalengibbons.com/blog/index.php/2009/10/update-debugging-flex-on-a-remote-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debugging Flex on a remote server</title>
		<link>http://www.kalengibbons.com/blog/index.php/2009/07/debugging-flex-on-a-remote-server/</link>
		<comments>http://www.kalengibbons.com/blog/index.php/2009/07/debugging-flex-on-a-remote-server/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 19:49:58 +0000</pubDate>
		<dc:creator>Kalen Gibbons</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Flex Builder]]></category>

		<guid isPermaLink="false">http://www.kalengibbons.com/blog/?p=327</guid>
		<description><![CDATA[Note: An update to this topic has been posted here. It provides a better solution than the one offered below, so I recommend you check it out before continuing. Have you ever had a Flex application that worked fine in your development environment but not when you moved it to your production server? How do [...]]]></description>
			<content:encoded><![CDATA[<p class="notice">Note: An update to this topic has been posted <a href="http://www.kalengibbons.com/blog/index.php/2009/10/update-debugging-flex-on-a-remote-server/">here</a>.  It provides a better solution than the one offered below, so I recommend you check it out before continuing.</p>
<p>Have you ever had a Flex application that worked fine in your development environment but not when you moved it to your production server?  How do you debug the problem?</p>
<p>You can use the following trick to enable Flex Builder to establish a debug connection to a remote server.</p>
<ol>
<li>
First, compile a debug version of the application and deploy it to your remote server.
</li>
<li>
Then go into the project&#8217;s properties in Flex Builder (Project >> Properties >> Flex Build Path) and change the &#8220;Output folder URL&#8221; to an invalid URL (this can be almost anything).<br/><br />
<img src="/assets/images/remoteDebug_badUrl.png" alt="Remote Debug: Bad URL" />
</li>
<li>
Compile your application again in debug mode.  This time, Flex Builder will launch the invalid url and will not be able to connect to the debugger.<br/><br />
<img src="/assets/images/remoteDebug_connecting.jpg" alt="Remote Debug: Connecting to debugger" />
</li>
<li>
While Flex Builder is waiting to connect to the debugger, navigate to the debug SWF that you put on your remote server.  Don&#8217;t forget to include <code>?debug=true </code>in the querystring.
</li>
<li>
Flex Builder will connect to the remote swf the same way it would have connected to your local version.  You can use breakpoints, inspect variables, and do everything you could do locally. <br/><br />
<img src="/assets/images/remoteDebug_debugPanel.png" alt="Remote Debug: Debug Panel" />
</li>
</ol>
<p>This trick comes in really handy when you have problem related to a specific environment.  I hope this can help ease the pains of debugging for some of you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kalengibbons.com/blog/index.php/2009/07/debugging-flex-on-a-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

