I installed flash player debugger and cannot able to debug the flash application.
And I got following message in console.
Waiting for Player to connect
Failed to connect; session timed out.
Ensure that:
1. you compiled your Flash movie with debugging on, and
2. you are running the Debugger version of the Flash Player.
Dont know how to fix.
If you are using chrome, the default flash player is not the debug version. After installing the Debug version of the player. you must disable the default version in Chrome.
Open Chrome
Go to chrome://plugins
here you should see both versions of the shockwave player. Disable the first one or the one that is located here:
C:\Users\your_username\AppData\Local\Google\Chrome\Application\22.0.1229.94\PepperFlash\pepflashplayer.dll
Now the debug version should be working in Chrome and should also work from Intellij if chrome is your default browser or set as the browser to open on debug.
Browser
Don't use Chrome to debug your SWF as it contains a non-debugger version of Flash Player. So after installing the Flash Player debugger, use Firefox, for example and make it as default browser.
SWF File
Be sure that you compiled your file as a debug version. To do that, have a look to your project structure. Then on your module and build configuration. In the compiler options, you should be able to check the "Generate debuggable SWF" option.
RUN/DEBUG Configuration
Check in the What to launch option, you selected your swf via HTML Wrapper. Check also that you selected the right Flex SDK in the options panel:
FINALLY
Launch your debug configuration. Intellij will build your project, create an HTML wrapper and launch it in the default browser (Firefox).
Your SWF should then be debuggable. If it still does not connect to the debugger in Intellij, right click in your flash application in Firefox and click Debugger
Based on the suggestion given by Timofei & bmleite, I fixed it.
When you debug pure SWF, make sure to check the default player is a debug player. Debug player has "Show Redraw Region" on right click.
IDEA generates html file that embeds swf file for users' convenience. If you open this html from file system, it allows you to debug SWF. If you put it (with the rest of files) to http server, then 'Debug' menu item is disabled in Chrome. In IE it works fine. This is obviously a Flash Player's bug.
Related
I have an ActionScript project that runs inside of another swf (embedded on an HTML page) so I can't use the 'Debug' option in IntelliJ's menu. Is there a way to connect the IDE's debugger to the browser so I can use breakpoints and such?
You can use the Flash Remote Debug option, just create a new remote debug profile
then hit debug and intelliJ waits until a swf debug file is launched on your computer it can be with a standalone player or plugin in a browser. both of them need to be debugger versions and your swf needs also to allow debugging (in Flash CC default does not accept debugging you need to change the publish settings).
I use this method to debug with IntelliJ an swf launched inside Flash CC hitting cmd+enter.
Maybe it works when you load and swf inside another.
When trying to run or debug in Flash Builder, I get the following error:
C:\Program Files (x86)\Google\Chrome\Application\plugins\NPSWF32.dll
Flash Builder cannot locate the required version of Adobe Flash Player. You might need to install the Flash Player or reinstall Flash Builder.
Do you want to try to run your application with the current version?
I've checked the setting in preferences > flash builder > debug and it is pointing to
C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\player\win\11.4\FlashPlayerDebugger.exe
Yet as you can see from the previous message Flash Builder is still trying to use the chrome version of flash player. How do I actually change this setting to use the right version?
Solved this by installing the plugin version of the debugger (for netscape compatible browsers) found here. I then had to go to chrome://plugins/ and disable the pepflashplayer.dll version of the player. Apparently chrome comes with the standard version of flash player preinstalled, and I guess flash builder was trying to use that.
Open the property of current project(e.g. HelloWorld), and go to Run/Debug Settings, double click the project, uncheck the "Use default" and choose "HelloWorld.swf", not "HelloWorld.html".
Updated fix:
Download and install the Active-X flash player debugger.
Test in Flashbuilder by setting your default browser to IE.
Download the Opera and Chromium debugger and install.
Now the Flashbuilder debugger should work with Chrome, also.
I discovered this by accident but I have tried it on two separate installs of FlashBuilder 4.6 and the debugger works in Chrome and IE.
I'm having major issues with my Flash Debug Player. For a while now it hasn't been able to launch properly, or at least so it seems. Whenever I visit a site with the debug player enabled I just get the sad puzzle piece and a message saying that Macromedia Flash Player has crashed. It's the same thing with ADL, I can only run it with the -nodebug flag.
It works just fine if I install the regular Flash Player or use the one built into Chrome.
If I'm not mistaken, this might have begun to happen when I installed the Flashbug debugger in Firefox.
I've done the following:
tried installing an older version of the debug player
uninstalled flash and AIR completely before installing a new version
made sure there is a flashlog.txt file
I've edited my mm.cfg to look like this:
ErrorReportingEnable=1
TraceOutputFileEnable=1
Nothing is written to flashlog.txt when I try using the debug player, or ADL, and it works with the regular player and ADL with -nodbug enabled, so I'm guessing something happens with the logging part of the player. When running ADL i get "Bus error: 10" in the terminal.
Could anyone give me a hint, or any ideas at all on how to fix this? Could there be some hidden configuration file somewhere that isn't removed when I uninstall to do a fresh install or something?
Please can you tell me what version you are running. The error appears when you try to debug a project from Flex or Flash Builder? I Had similar when trying to debug projects in Flash Builder with Firefox, the solution (for me) was to uninstall flash player with this program and then install again a correct version, in this case try with the version 9 or 10.
I hope it will be helpful
I've just upgraded to publish my SWF files as Flash 11. I want to attach FlashDevelop to Firefox (or IE). I'm able to first attach it, however player crashes after my first call to PHP file(not sure if it is related) and the debugger is stopped. If I just run the program without debugging it doesn't crash.
How can I figure out what is causing the problem?
Here is my set up:
FlashDevelop 4.0.1 RTM on Windows 7 (32bit)
Installed - Windows Flash Player 11.2 Plugin content
debugger (for Netscape-compatible browsers) (EXE, 3.89MB) from http://www.adobe.com/support/flashplayer/downloads.html
In FlashDevelop, I point Program->Settings->FlashViewer to flashplayer_11_plugin_debug_32bit.exe (I'm not exactly sure if this correct).
The way I attach is by going to Debug->Start Remote Session. Then launch an HTML page that loads my SWF.
update: Instead of upgrading to 11.2 version I upgraded to 11.1 . Now I'm getting some feedback in the output window. [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference. However FlashDevelop doesn't break on that exception and I don't see a file name or line number which would help me to figure out wher exectly the error is happening.
update: I finally rolled back to my original version of 10.1.102.64 and now FlashDeveloper isn't crashing while debugging.
When you debug a flash application, you freeze the thread and your browser will think the application has locked up or died. It will then try to save your browsing session by force closing the plugin causing the problem (in this case, Flash).
To stop Firefox from doing this, type in "about:config" (minus quotes) in the address bar and hit enter, then click "I'll be careful" if a warning comes up.
Look for "dom.ipc.plugins.timeoutSecs" by typing it in the config search bar and set its value to -1. This will stop the browser from shutting down laggy plugins.
Disable the flash debugger plugin in your browser. Are you accessing the same SWF from the browser that you are debugging?
I am trying a simple code for event handling. I applied break point on a line of action script code of event. I want to see the debug window to check which event is generated. It does not show me any error but whenever i click the debug button i get the following problem
The Flash Builder debugger failed to connect to the running application.
Ensure that:
For in-browser applications, you are running the debugger version of Flash Player.
For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935 is open on your machine's firewall.
My project runs correctly in browser showing the desired output but it shows me launching failed dialog with above error. Please help
One other thing you can try which worked for me when the above didn't - in Flex Compiler in Properties for the project, untick Generate HTML wrapper file, apply that, then tick it again and apply again. Seems to clean/reset the project in some way, which 'clean project' doesn't.
Try to shutdown "adl.exe" in taskmanager, It seens the old adl.exe occupied port 7935 that flashplayer can't creat new one.
That's how I solved it.
It happens many a time, but you can solve it in 4 ways
1) Clean the project and try.
2) Close flex builder and reopen it. try it, If that doesn't work than go for 3 option
3) Change your workspace and import that project in it or best is create new one and make the changes in it, Sometimes the workspace get corrupted and so it happens...
4) If above 3 option that doesn't work than reinstall your Flex builder, make sure that you uninstall flex builder properly.
I had exactly that symptom. Blank browser window, a freeze at 57% for 2 minutes and the same error message.
The problem was an error in my javascript. As usual, it just silently aborts whatever it is doing. As a result, the SWF was never started and the debugger failed to connect to the running program.
So, if the browser window remains blank it is probably a javascript error. Display the javascript console to see what is going on.
When I faced this issue what I had to do is re-install the adobe flash debugger version for firefox and Flash could successfully run in debug mode
Reason for the error : The firefox updates the flash builder version which for some reason doesn't work with the Adobe Flash Builder 4.6
You can follow below steps and get the flash application run in the debugger mode :
1) Go to https://www.adobe.com/support/flashplayer/debug_downloads.html
2) Download : [Download the Flash Player content debugger for Firefox - NPAPI][1]
3) Install the downloaded executable and install it over whatever version of Adobe Flash
builder that you have .
4) Restart the Flash Builder and run the application in debugger mode and check if it
works.