?
Solved

How do I debug a Flex application through Adobe Flash Builder 4.0?

Posted on 2010-04-06
10
Medium Priority
?
1,103 Views
Last Modified: 2013-12-12
Hi:

I'm a relative newbie to the world of Flex/Flash.
I' currently going through an online tutorial to come up to speed.
As part of the tutorial, I want to be able to run and analyze behaviour through the debugger.
I click on the debug perspective incon in the tool bar (which should lanch me into debug mode and recognize breakpoints.)

The application seems to launch OK in a new browser window, however breakpoints in my action script aren't getting fired. Eventually I get a "Failed to launch error" -- I'm assuming that this is somehow the debugger failing to get initialized/start up.

In Flash Builder, I get an error dialog with the following message:
----------------------------------------------------------------------------------
Failed to connect; session timed out.
Ensure that:
  1. You compiled your Flash application with debugging on.
  2. You are running the debugger version of Flash Player.

This should be pretty basic stuff. Am I missing something here? Is there an issue that I'm running in Windows Vista Business?

I'm using the latest version of Flash Builder Premium 4.0 v:272416
I'm running on Windows Vista Business v: 6.0 (Build 6001: Service Pack 1)
0
Comment
Question by:jxbma
  • 5
  • 4
10 Comments
 
LVL 37

Expert Comment

by:CyanBlue
ID: 29955407
Do you have a debug version of the Flash Player installed???  Just open up a web browser, navigate to any Flash content you can find on the web, right click on it to see if it says 'Debugger' or not...  If you don't see it, it means that you have a regular version of Flash Player...  You should go to Adobe site to download/install the debug version of Flash Player so that you can use it with FB...
   http://kb2.adobe.com/cps/142/tn_14266.html

CyanBlue
0
 
LVL 1

Author Comment

by:jxbma
ID: 29955716
OK. I went to a site with Flash content. "Debugger" is listed in the available as a menu option, but it is disabled. I'm assuming that means it is not installed?
0
 
LVL 1

Author Comment

by:jxbma
ID: 29957586
OK. I've installled the latest FlashPlayer10 ax debug.
I'm still seeing the same symptoms.

Within Flashbuilder (after I attempt to launch), I see in the status bar that it's attempting to load something.
I see a "Launching project name 57%..." and it seems to more or less stay at that until I get the error dialog I mentioned in my above comment.

When I did my initial install, I installed the final release version of Flash/Flex 4.0.
I would have that with this I should be ready to go in terms of debugging....

JB
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:jxbma
ID: 29957811
Additionally, I can't seem to get the Network Monitor to work either.
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 30021807
Maybe you already have a window open with the app???  Make sure you are only running one instance not multiple...  Also check to see if there is any running in a background...

I hope this isn't the case(I only needed to update the FlashPlayer to resolve the issue), but see if there is any anti-virus program or firewall program running, and disable them if it is the case...

I don't know how relevant it is, but here are a couple more that you could try...
   http://darqwan.proibito.ro/2009/05/31/flex-debugger-fails-to-connect-to-flash-player/
   http://therush.wordpress.com/2008/03/10/flex-builder-3-debugger-stopped-working/
   http://my.opera.com/flexcoders/blog/2008/07/25/using-flex-builder-for-flash-development

CyanBlue
0
 
LVL 1

Author Comment

by:jxbma
ID: 30252081
Actually I have a call into Adobe support to try to figure out the problem. I will post the result as soon as we figure it out.

Thanks,
JohnB
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 30320503
Love to hear what you learn from them...  ;)

CyanBlue
0
 

Expert Comment

by:osmanad
ID: 30585632
You should have a debugger veersion of flash which you can download from here :
http://kb2.adobe.com/cps/142/tn_14266.html
0
 
LVL 37

Accepted Solution

by:
CyanBlue earned 2000 total points
ID: 30610433
He said that he has it already, and upgraded to the latest debug player but the problem still exists, osmanad...

CyanBlue
0
 
LVL 1

Author Closing Comment

by:jxbma
ID: 31711580
You were spot on.
There were several packages containing debug versions of the flash player. I was (of course) installing the wrong version...

Thanks,
JB
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Choosing the right mix of apps is very much necessary for CPAs for making the most of the latest technology through which they can boost their growth.
This applies to Dell but may also apply to other manufacturers as well. We ran across a few machines that just dropped recently it trust relationship with the server. After doing the basic removing and joining the domain again, it changed to No logo…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question