12 Replies Last post: Jan 27, 2012 12:56 PM by Alexander Doroshko  
Peter Jacobsen Novice 341 posts since
Apr 22, 2003
Currently Being Moderated

Jan 26, 2012 12:33 PM

Debugging Flex 3.x projects in FP 11.1 does not work

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

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 26, 2012 12:46 PM in response to: Peter Jacobsen
Re: Debugging Flex 3.x projects does not work

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)?

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 26, 2012 1:13 PM in response to: Peter Jacobsen
Re: Debugging Flex 3.x projects does not work

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?

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 26, 2012 1:59 PM in response to: Peter Jacobsen
Re: Debugging Flex 3.x projects does not work

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?

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 26, 2012 2:50 PM in response to: Peter Jacobsen
Re: Debugging Flex 3.x projects does not work

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.

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 26, 2012 2:53 PM in response to: Alexander Doroshko
Re: Debugging Flex 3.x projects does not work

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.

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 26, 2012 7:10 PM in response to: Peter Jacobsen
Re: Debugging Flex 3.x projects does not work

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)?

Alexander Doroshko JetBrains 1,298 posts since
Jun 9, 2009
Currently Being Moderated
Jan 27, 2012 12:56 PM in response to: Peter Jacobsen
Re: Debugging Flex 3.x projects does not work

One issue is enough

More Like This

  • Retrieving data ...