Starting with IntelliJ IDEA 11 I cannot debug Flex 3.x projects anymore. The debugger connects to Flash Player debug (11.1.102.55), then it takes 10 seconds to start the project but all breakpoints (i.e. like trace() on line 11 below) are marked invalid/are skipped. So I tried Astella 112.507 - same thing. IDEA 10 debugger works fine with Flex 3.x.
I am running OS-X 10.7.2.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="onCreationComplete()">
<mx:Script><![CDATA[
import mx.controls.Alert;
private function onCreationComplete():void
{
trace("onCreationComplete()"); // <== breakpoint marked invalid/skipped
}
]]>
</mx:Script>
<mx:Button click="Alert.show('Hello, world')" label="Say Hello"/>
</mx:Application>
Any idea what's wrong? BTW - how do I mark code blocks in forum text editor?
Thanks and Regards,
Peter
Hm, all works fine for me in both IDEA and Astella. App starting takes less than a second and breakpoints work. Can you please attach sample project (though I hardly believe it differs from mine)?
I just created a new project in Astella and added the onCreationComplete() method to add a breakpoint - so it is really the minimum. Strange, it does not work on my colleagues computer, either. We are both running OS-X 10.7.2 with the latest Java SDK (build 1.6.0_29-b11-402-11M3527) and Flash Player debug 11.1.102.55. Are you on Windows or Linux by any chance?
Peter
Windows 7, jdk 1.6.0_27 32bit, FP 11.1.102.55 standalone debugger. Will try on Mac. BTW what exact version of Flex SDK 3.x did you try?
Hi Alexander,
thanks for responding so quickly.
I am working with the browser flash player plugin (because I need to fiddle with flashvars). I tried Flex SDK 3.6.0.16995, 3.5.0.12683 and 3.3.4852.
Peter
Thank you, my colleague has reproduced the problem and it seems to be a FP 11 for Mac bug. IDEA 10.5 works with this player version in the same way. I suppose you used a different FP when was working with IDEA 10.5, didn't you?
Your are right, we had tested IDEA 10.5 with FP 10.3, sorry about the confusion. Once we update to FP 11.1 IDEA 10.5 has the same problem.
Is there a chance that you can implement a workaround for the FP bug in IDEA/Astella? Otherwise it would be a pain to fix bugs in legacy Flex 3 projects :-(
Thanks for responding so quickly,
Peter
We can debug the Adobe's flex debugger itself, but chances that FP bug can be workarounded at debugger side are very little. Most probably FP just gives incorrect responses to the debugger and this can't be workarounded. And slow startup on Mac - I have no idea what the problem is.
Can you please open respective 2 issues in Adobe's bug tracker? They are not so responsive as we are, but may be they'd like to fix at least startup performance issue.
More voodoo. Flash Builder 4.6 works normally - no startup delay, debugger works as expected. Damn, IDEA for coding, FB for Debugging is not so thrilling.
Peter
Need to sort out. Then please add a request in our tracker.
Just to check if it is compiler or debugger issue, can you please try to debug swf compiled by FB using IDEA/Astella debugger (use remote flash run configuration)?
I debugged a FB 4.6 compiled SWF with IDEA 11.0.1 - same problem, so it seems to be a debugger issue. I created YouTRACK issues for Astella http://youtrack.jetbrains.net/issue/AS-428 and IDEA http://youtrack.jetbrains.net/issue/IDEA-80407.
Thanks,
Peter
One issue is enough ![]()