Some things to check:
1. Right click on your app in browser and see if "Debugger" is present in the menu.
2. To isolate if it is a Flash Builder issue, try unchecking "Generate HTML Wrapper"" in Project properties -> Flex Compiler and then hitting debug (that will launch it in standalone player which also connects back to the debugger in FB in the same way as the plugin).
1. I right clicked and 'Debugger' is available in the menu.
2. I de-selected 'generate html wrapper' and did a clean build. I launched the debugger and it opened a browser window, but flashbuilder hangs at 57% progress, so the debugger is never fully initialized. I also tried debugging the .swf rather than the html and I got a dialog saying it was unable to locate the correct version of the flash player.
Since I'm running Windows 7 64 bit, could flashbuilder be looking in the wrong location for the plugin?
Update: I'm also seeing the same behavior in my Air projects.
Okay, now we need to dig a bit deeper, but we know where the problem is (at Flash Builder's end).
1. What is your Flash Builder version? (I'm assuming 4.5.1 which is the latest)
2. Do you get the error every time you hit debug?
3. Can you check if Internet Protocol Version 4 is enabled in your adapter settings (wireless or LAN adapter depending upon your connection)?
4. After you hit debug in Flash builder, try doing a netstat -an from command prompt. Does 7935 show up with a listening state?
5. Do you have a firewall that blocks even local ports even within the machine? The debugger listens on port 7935 for an incoming connection from AIR/flash player. You can test this by doing a telnet localhost 7935 after hitting debug in Flash Builder. If telnet connects, then Flash Builder is listening properly.
6. Does the problem go away if you run Flash Builder as an administrator? (right click on Flash Builder's shortcut, say run as administrator)
Also, please post the contents of your Flash Builder log file located at workspacedir/.metadata/.log
1. I'm using version 4.0.1, however I installed the trail version of 4.5.1 and it behaved in exactly the same way.
2. The error shows up every time.
3. IPv4 is enabled.
4. port 7935 does show up as listening, however the full address looks like this: 0.0.0.0:7935 . Is that correct?
5. To rule out that issue I turned the firewall completely off. Is there some tool I can use to send a packet to that port and make sure it isn't being blocked?
6. Running as admin didn't have ant noticeable effect. It still hangs at 57%.
1 person found this helpful
> 0.0.0.0:7935 . Is that correct?
Yes. It only appears once you've hit debug, right? (You can cancel a debug launch by click on the green progress icon and then hitting the red stop button).
> Is there some tool I can use to send a packet to that port and make sure it isn't being blocked?
Yes. Telnet. You'll have to enable it via Control Panel -> Programs and Features. Once it's enabled, type in: telnet localhost 7935.
So Flash Builder is listening (as per netstat), but others can't connect. Usually firewalls are lenient about connections within the machine (i.e from and to to the same machine) and disabling it didn't have an effect.
Telnet should confirm a connect problem. Figuring out why the socket connection cannot be made in your machine will be a challenge.
By chance, do you have flashbug or any third party debugging tools installed?
I sent you a PM with the contents of the log file. I'd rather not post the whole thing directly in the discussion since it contains details of my machine.
Got it. Log looks fine. Can you see if telnet works?
Currently telnet isn't connecting, but the problem isn't restricted to just the debugging port. I need to double check my hosts file. I'll let you you what I find out.
After 3 days of frustration, the solution is so simple I could cry... For anyone else who runs across this issue take a look here:http://therush.wordpress.com/2008/03/11/resolved-flex-builder-3-debugger-stopped-working/
I think my problem was cuased by the fact that in my hosts file I have localhost redirected to a location on the backend web server where the app is actually being deployed. I changed the setting in the Debugger dialog (right-click in the running app and select 'Debugger') from 'localhost' to 'other machine' with an ip of 127.0.0.1 . As soon as I did, flexbuilder launched the debugger and everything started working.
Still not entirely sure why this works, but it must change a windows setting somewhere. I exited 4.5 and opened a project in 4.0 and the debugger worked there as well without having to repeat the process.
Good to know you got it sorted!
This image is the error I get every time I try to run the debugger.
This second image comes a minute or two after the first, regardless of whether I choose "yes" or "no" on the first error.
I am a web design/development student. My Actonscript 3.0 class requires Flash Builder and the debugger. I am already 4 assignmets behind b/c I am unable to get it working correctly. I apologize, but I don't completely understand all of the suggestions posted in the forum. If you could explain them as simple as possible I would really really be grateful. Also, whenever I try to right-click in the running ap, as the last solution instructs, I don't even get the debugger option. This is what I get instead.
I've tried to uninstall/reinstall both Flash Builder and Flash Player without any luck. I really need this resolved asap or I'm afraid I may have to drop this class and honestly speaking, dropping the class is not a viable option. Due to my recent layoff, my school is being funded through the federal TAA program and they have strict timelines about how long I have to complete school. If I drop the class I will miss the deadline. Please, please help me resolve the issue. I am using the latest version Flash Builder available to date, running Windows 7 64bit and the latest version of Flash Player. Originally I just happened to be using Chrome as a browser, but I normally use Firefox. I also have Opera, Safari and IE installed but had the same results when tested in each of these browsers. Again, please make the instructions as simple as possible as I am a web student and don't know much else. Thanks in advance to anyone that can help b/c I desparetly need some help.
1. Get the latest debug player from http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_plugin_debug.exe (For Chrome/Firefox)
2. Install, restart the browser.
3. In the case of Chrome, you need to disable Chrome's built-in release player - http://polygeek.com/2780_flex_debugging-with-google-chrome-and-flash-player-10-1
4. In the case of Firefox, you have to disable the plugin hang detector: See http://anirudhs.chaosnet.org/blog/2011.05.17.html
Thank you both for the quick response, but still no luck. I no longer get the immediate error message as before. What happens now is that the browser displays the application but never actually connects to the debugger. Sometimes I'll even get this screen to pop up.
It doesn't matter what I choose, I get the same result.
Do you have any clue as to what's going on or what I should do?
Looks like your first problem is solved. You're on the right track, but you ran into another one.
Before we try to fix this problem, can you try creating a Flex project, but this time pick Desktop instead of Web in the wizard. Try debugging in that case. Does that work?
In the command prompt, what does
Selecting desktop instead of web in the wizard did not change the outcome. nslookup localhost in the command prompt returned:
DNS request timed out.
timeout was 2 seconds.
DNS request timed out
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
***Request to UnKnown timed-out
That could be the problem. A "ping localhost" will also show if the right IP address (127.0.0.1) is being resolved.
Try editing c:\windows\system32\drivers\etc\hosts with notepad and adding the mapping for localhost there:
127.0.0.1 localhost is already in my host file, it's the very first line. Is there anything else I can try?
Running out of ideas, but try these in order.
1. Do you IPV4 enabled? (Go to network and sharing center, adapter settings, right click on the right adapter, choose Properties, check if Internet Protocol Version 4 is checked)
2. Try running Flash Builder as Administrator. Right click on Flash Builder's shortcut and choose "Run as administrator".
Also, the Flash Player I installed in your first set of instructions continuously crashes. I have to reload the page a few times before it works. I don't know if these issues are related, but I thought it may help with the troubleshooting.