Connecting Flex to Content Debugger
Yesterday my trial of Flex Beta 3 expired, forcing me to finally uninstall/reinstall the Flex 3 final release. A lost my beautiful custom perspective and all those plug-ins I had grown to love… sigh.
The worst of it was that I the reinstall brought the full wrath of the evil “Waiting for Flash Player to connect to debugger” error of doom. I looked around online for anwers — none. The only documented solutions were to try to reinstall Flex and insure I was using a debug version of the player. I was on my own.
How did I solve this issue?! Well I didn’t… sort of.
Daniel had helped Chris with a problem like this before though. Turns out that the problem stems from an unlikely place. When you uncheck “Generate HTML wrapper file” for an ActionScript project - which we always do - Flex assumes whatever you set as your system default application to launch SWFs. For example, if you set Flash Authoring as the app and then hit “Debug Project” in Flex, it’ll kick open Flash CS3 and go. I’ll only say this is an issue for me because there’s no documentation of that anywhere, at least that I can find. It’s a bug by virtue of obscurity.
Compounding the problem is that OSX seems to get easily confused if two applications share the same ID. Such as “Flash Player.app (9.0.115)” and “Flash Player.app (9.0.115)”, with the second one being the content debugger. Confusing, right?
I was able to determine that the standalone player had somehow defaulted to the former (regular ye ol’ Flash Player) and that I could not set the latter (debug Flash Player) to default, since my Mac thought both applications were the same thing. I had to delete the regular one, which is fine since I’ll never use it anyway. And now Flex works properly… no more connection issues.
March 19th, 2008 by Jamie / 6 Commentsflex



