Starting with IntelliJ IDEA 11 I cannot debug Flex 3.x projects anymore. The debugger connects to Flash Player debug (18.104.22.168), 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.
private function onCreationComplete():void
trace("onCreationComplete()"); // <== breakpoint marked invalid/skipped
<mx:Button click="Alert.show('Hello, world')" label="Say Hello"/>
Any idea what's wrong? BTW - how do I mark code blocks in forum text editor?
Thanks and Regards,
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 22.214.171.124. Are you on Windows or Linux by any chance?
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 126.96.36.19995, 188.8.131.5283 and 3.3.4852.
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,
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.
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)?