jump to navigation

RESOLVED! Flex Builder 3 Debugger Stopped Working!! March 11, 2008

Posted by therush in Adobe, Flex.
Tags:
trackback

HELLO WORLD,

This one shall never be forgotten. After a couple hours more of troubleshooting this issue I returned to a dialog setting I visited once before. But this time I tried something a little different;

As I stated before, if I debug my Flex app, the app runs in the browser but the debugger is unable to connect. So I ran it again. As the debugger was trying to connect I went to the running app in the browser. I right-clicked on the app bringing up the Flash Player context menu. I clicked on the Debugger menu item (see image below).

Debugger in Menu

This then brought up the familiar Flash Player Debugger dialog box (see image below)

Debugger Setting

Now in the past I would simply click on the Connect button, but with no success. I then decided to specify Other Machine and entering my localhost IP address (I tried entering Localhost without success). I then clicked on the Connect button. Suddenly a change occurred on the Flex Builder interface. I first though that the process of waiting for the debugger to connect timed out, but Low and Behold! The debugger connected!! I couldn’t believe my eyes. Was it that simple all along? I stopped the debugger and started it again with my breakpoints. Again the debugger connected … without complaint. I am now a happy camper.

I’ve been suffering headaches for the past couple of days (even today). This issue only served to make them worse. I even dreamed about it last night. However now I can clear my mind and rest easy that my Flex Builder Debugger is Back! (unfortunately so are my headaches)

Thanks all who commented on my last post for the help. Even though none of them provided a solution, I learned a lot along the way.

Comments»

1. Tom Chiverton - March 12, 2008

If you need to do that, maybe you don’t have the latest debug Player.

2. therush - March 12, 2008

Hi Tom,

Actually, I used the code in my previous post to confirm that I am using the very latest version of the Debug Flash Player. In addition, I have uninstalled the Flash Player (using the Adobe supplied uninstaller), reinstalled the Debug Flash Player, and restarted the PC several times.

By the way, the debugger never stopped working when debugging AIR apps. In fact I ported my Flex 3 app to n AIR app and continued my testing and debugging the Flex app as an AIR app. That was a learning exercise in itself. I have to encapsulate the Flex specific script and the AIR specific script into two different classes. Then depending on which project I am working with (Flex or AIR) it would use the appropriate classes. Fortunatly I deployed the Flex app as an AIR app and not the other way around.

Thanks for the tip anyway.

3. Tom Carden - April 1, 2008

Brilliant! Thanks for posting this, I’ve been googling on and off for a few weeks now trying to find out how to re-enable break-points since I updated some combination of flash player, flex builder and mac os. Setting the local IP address specifically fixed it for me too.

Definitely a weird bug, since the debugger was working perfectly when an error was thrown, but the debug player would hang if any breakpoints were set.

Thanks again!

4. Johanes - April 10, 2008

Awesome! thanks dude for publishing this, finally I found out what went wrong and my Flex Builder can connect back to debugger.

Thanks heaps!

5. Mitek - April 21, 2008

I had the same problem and after reading this post I right-clicked on Debugger and there I saw really weird thing – it was trying to connect to 192.168.100 (non-existing address in my network), so I simply selected the Localhost and it worked.

Thanks for the post!

Cheers,
Dmitri.

6. Saqlain Abbas - April 22, 2008

Excellent!! thanks therush. It also solved my problem :)

7. vijay - May 24, 2008

Thanks a lot man….. it really helped me ……. i was unable 2 connect to debugger since two days now it got resolved …. now i hope i can meet my deadline if everything else goes right :)

8. riasol - June 9, 2008

Thanks for your publication. I had similar problem, i a your solution but after testing i found that problem with connection is by missing entry in windows domain resolving file (hosts). After creating “127.0.0.1 localhost” line flash debugger connects with “localhost” radio checked. But why debuggers worked before if there was not a line…?

9. Max - June 17, 2008

Interesting — I’m getting the same symptoms and have tried pretty much everything described in this and the prior article and still haven’t had any luck. I’ve got the debug player version 9.0.124 installed. Upon changing the debugger settings to my local IP address, I get the following alert from the browser:

“A connection to the debugger or profiler could not be established by Adobe Flash Player 9″.

Anyone else had similar issues? Suggestions?

10. fabiopedrosa - July 11, 2008

Thanks, same thing happend here.

11. Aaron Leavitt - July 15, 2008

Not sure why that worked but it did. I’ve never had to click the “connect” at all before, but once specifying and it worked. Thanks!

12. SOG knives - July 17, 2008

SOG knives…

Interesting ideas… I wonder how the Hollywood media would portray this?…

13. Mark Ledford :: Fix for when Flex and your debug flash player won’t connect for a debug session - August 6, 2008

[...] this guy wasted hours finding a fix to this strange issue so I didn’t have to. Right click on the swf and click on “debugger” in the flash [...]

14. Geraldo Andrade - August 9, 2008

Muito obrigado!
Você não sabe a que ponto minha paciência foi-se. Eu fiquei muito puto por nao saber o que fazer com este problema no meu flex builder 3. Os fóruns de flex aqui no Brasil não sabem de nada, bronca de sistema ninguem consegue resolver.
Thank you so much!
You don’t know how my patience vanished. I was really angered for doesn’t know what to do with this problem in my flex builder 3. That forums here in Brazil don’t know anything, a great system problem nobody can solve.

Thanks again!

15. Scott - August 27, 2008

The problem I encountered is related to enabling the profiler. The solution was posted at http://www.fingersdancing.net/2008/06/flex-debugger-crashing-eclipse-safari.html and has to do with the PreloadSwf line in the mm.cfg file. Once I commented out the line the debugger worked as expected for both IE and Firefox.

16. Annoyed User - September 11, 2008

I’ve reinstalled the latest Flex Builder and flash debuggers, edited my config files, and opened ports all over and still profiler doesn’t work… really annoying.

17. ::foogaz:: - October 25, 2008

respect ünd thnx!! ;]

18. Framed wall art - October 30, 2008

I am using Flex builder 3 and Fire fox 3. When I tried to debug in Flex builder, the Fire fog pops up, but it’s not connected to debugger, do I need to install some kind of dll for Fire fog?

Thank you for your help.

19. Disgruntled - November 12, 2008

I’m really confused because when I right-click “Debugger” is grayed out. Anything else I’ve found on this says that button isn’t even supposed to be available, but is simply there to let you know that you have the debugger version installed.

Ideas?

20. JohanM - November 20, 2008

Possibly your problem could be originating in the same issue that I’m writing about here: http://thoughts.novaleaf.com/johanm/2008/11/20/debug-output-trace-stopped-working-in-flex-builder-3/
The bug tickets at Adobe and Mozilla is still open on the subject and hopefully they will be resolved soon.

21. ChrisH - November 21, 2008

Thanks a lot for posting this – since upgrading to Flash Player 10 and Adobe AIR 1.5, debugging stopped working, and others have had the same problems. Changing the IP address as per your description solved it!

22. Gratus - November 23, 2008

Thanks a lot for this post!!! I had the same problem one day at 1am – lucky for me after 30mins I found your post.

23. » Blog Archive » “Flex debugger not connecting?!” - November 30, 2008

[...] but thank God it’s a 2 second fix ( I took the risk to burrow the images from the other blog: my saviour [...]

24. Prashant Khanal - December 3, 2008

thanks dude…you saved my time i rather quickly googled my problem and voila!! i got to this page and problem solved.

25. Paul - January 5, 2009

WHOOO .. thanks for that .. i just spent half a day on this one, till i found this post .. the most annoying thing again, reinstalled fp 5 times, flex about 3 times .. was going nuts ! not a good start to the new year. Thanks once again.

Paul

26. Bob - January 5, 2009

Still having this problem after following previous suggestions. Any ideas?

27. jason - January 5, 2009

Debugger option is grayed out and not available so the fix doesn’t work.

28. Scott - January 15, 2009

Thanks for the solution. Debugger was broken from the minute Flex was installed on a new Vista box. Appreciate the insight.

29. Adam - January 18, 2009

Thanks!!! I’ve run into this issue dozens of times on a number of computers and never could figure out what to do. How stupid that 127.0.0.1 works but “localhost” does not.

30. RichClient - January 23, 2009

Worked like a charm! How does it feel to have eliminated major frustration?

Thank you!

31. Ehsan Baghaki - January 31, 2009

Thankx man!! I encountered the error and after just ONE search in google i found this and BOOM error fixed!! Thankx again

32. Shade - February 3, 2009

Hi, im using mac and doesnt work, any other solution for this problem?

33. Mateusz - February 10, 2009

Thanks! Now Flex Builder seems so much more useful :)

34. pallzoltan - February 11, 2009

thanks, very useful

35. Tyler Gillispie - February 13, 2009

Very nicely done! Solved my problem. I’ll never touch default settings again! ;) –yeah right.

36. Tim Symons - February 26, 2009

Fix it for me too. This was driving me crazy since I was getting this error on XP at work but not on Vista at home!

Thanks for tracking this down.

37. Sid Maestre - February 27, 2009

Thank you, thank you, thank you.

I’ve been struggling, ignoring, returning to struggle more with this issue.

Your solution fixed my problem. Mac OS X Leopard, Flash Debugger 9 and Flex Builder 3.2

Thank for your taking the time to post it.

38. matias - February 27, 2009

I thank you very much!!!

I had problems on Vista64, Flash Debugger 10 and Flex Builder 3.2

39. Windows 7 beta, Flex Builder and debugging. - Tom’s blog - March 8, 2009

[...] After a couple of attempts of changing UAC settings, looking up ports etc I found a solution here. Basically what you need to do is specify where your application is running. Right click on the [...]

40. Lane - March 10, 2009

billion thanks to you ..
I stuck almost 5 hours

41. junkoro - March 10, 2009

I am going to shout from Tokyo, Japan. Thank you very much! It just worked!!

42. iamconor - March 10, 2009

Thanks for posting! It worked for me too!

Woohoo!

Conor

43. iamconor - March 10, 2009

I found the cause in case anyone was interested. The localhost value in my hosts file had been corrupted somehow. I just had to set it back to 127.0.0.1 and it worked with the debugger set to localhost or set to 127.0.0.1

44. eme - March 17, 2009

Thanks! It works here too!

45. RaiulBaztepo - March 28, 2009

Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language ;)
See you!
Your, Raiul Baztepo

46. mpj_33 - April 7, 2009

If the option for “debugger” is grayed-out, then double-check to make sure that you have uploaded the debug version of the Flex app, and not the release version.

47. Tim Rowe - April 9, 2009

The debug player I was using I couldn’t find a way to get that dialog up, and couldn’t get Eclipse to launch anything in a browser (only an Air app), so I’ve just spent half an hour trying to resolve the same problem, this was the solution for me:

in hosts (\drivers\etc) localhost was bound to the ipv6 address ::1
It seems Eclipse/Flash doesn’t recognize this, so I had to add an additional line for the IPv4 address, a line containing:
127.0.0.1 localhost

This fixed it straight away for me.

48. Alex - April 26, 2009

Champion! Thanks.

49. dennis callao - May 10, 2009

wow thanks! never thought my problem would be as simple as this..
now im back on track! thanks again!!

50. SteveS - May 30, 2009

I’m having the same problem and this doesn’t work me… because the Debugger menu item is grayed out in the context menu.

51. David Sackstein - June 9, 2009

Hmmm.
Thanks BUT
I wasted 2 hours on this problem and then I found your post.
After making the change, it worked “like a dream”.
Then it stopped working again “like a nightmare”.
So, there is no solution for this.
The community of Flex programmers is deemed to spend hours on the most basic of development functions – run the debugger.
And you write you hate Vista?
I admit I am a newbie outside of Microsoft, but its not a very encouraging entree into the world of Flash..
Does anyone have any more ideas?
Thanks

52. Pierre - June 27, 2009

I was having the same problem with launching an AIR APP in run and debug mode. I finally changed the application version in the
your app name-app.xml file to:
application xmlns=”http://ns.adobe.com/air/application/1.5.1″

and all runs well in version 10

53. tekkie - July 9, 2009

It’s all very weird and most likely related to the hosts configuration file.

But the thing related to it that I experienced with Flash Player Uninstall, is that it simply hung and didn’t uninstall a thing (on Mac).

With every possible player-deploying thing closed, the only evidence of this piece of software (or shall I say crap) were 2 lines from the console:

09.07.09 21:47:17 authexec[59427] executing /bin/sleep
09.07.09 21:52:24 authexec[59458] executing /bin/sleep

So pretty bad all this.