I’m trying to debug a Flash project with IntelliJ IDEA. Here is what I get:
“c:\program files\java\jdk1.7.0_06\jre\bin\java.exe”
“-Dapplication.home=C:\Program Files (x86)\flash” -Xmx384m
-Dsun.io.useCanonCaches=false -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath “C:\Program Files (x86)\JetBrains\IntelliJ IDEA
11.1.3\plugins\flex\lib\idea-fdb-4.5.0.20967-fix.jar;C:/Program Files (x86)/flash/lib/fdb.jar” flex.tools.debugger.cli.DebugCLI Adobe fdb
(Flash Player Debugger) [build 23201] Copyright (c) 2004-2007 Adobe,
Inc. All rights reserved. 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.
I have compiled my Flash with debugging on. If I go to Project Structure -> Build configuration -> Compiler options, Generate Debuggable SWF is checked. I am running a debug version of Flash player.
What is wrong?
This seems to be a problem with chrome debug version of flash player. SWF file is not identified as debuggable if it comes from local web server. If the same file is opened from file system, it can be debugged. There is no such problem with IE. Hope that would help someone.