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

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)
LVL 1
jxbmaSoftware ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CyanBlueCommented:
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
jxbmaSoftware ConsultantAuthor Commented:
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
jxbmaSoftware ConsultantAuthor Commented:
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
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

jxbmaSoftware ConsultantAuthor Commented:
Additionally, I can't seem to get the Network Monitor to work either.
0
CyanBlueCommented:
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
jxbmaSoftware ConsultantAuthor Commented:
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
CyanBlueCommented:
Love to hear what you learn from them...  ;)

CyanBlue
0
osmanadCommented:
You should have a debugger veersion of flash which you can download from here :
http://kb2.adobe.com/cps/142/tn_14266.html
0
CyanBlueCommented:
He said that he has it already, and upgraded to the latest debug player but the problem still exists, osmanad...

CyanBlue
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jxbmaSoftware ConsultantAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.