This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
8 Replies Last post: Mar 22, 2010 2:13 PM by Duncan Alexander  
Duncan Alexander Newbie 20 posts since
Jul 20, 2005
Currently Being Moderated

Mar 16, 2010 5:22 PM

Flex application not starting in debug mode

Hi, Im having an issue with Flex debugging.

 

Im using IDEA 9.0.1 (9394) on Windows 7

 

I have a Flex only project with a numbr of librariy modules (swc) and one main module (swf).Everything compiles fine. The output from the swf module is dropped into an exploded WAR directory in a JBOSS deployemtn directory. I can fire up a browser and hit the application ok, referencing either SWF or wrapper HTML. I can also setup a run configuration and run the application as either SWF through FlashPLayer or URL through a browser. BUT. If I try to debug the same run configuration, the Debug tab opens and then .... nothing.

 

Sometimes there is an error which states, "Unexpected debugged player communication problem". But only on the first attempt to debug. After that, nothing.

 

I have specified IExplorer as the default browser in the IDEA settings so I dont think its the Firefox 3 fdb problem.

 

The URL specified in the run configuration includes  ?debug=true on the end of the URL.

 

Ive updated idea.properties and added the line 'idea.is.internal=true'. Im tailing the logfile and it doesnt show any errors.

 

Any pointers? It was all going so well until this point :-(

 

cheers

Duncan

Guest
Currently Being Moderated
Mar 16, 2010 5:32 PM in response to: Duncan Alexander
Re: Flex application not starting in debug mode

Please, install Flash debug player from Flex SDK installation

 

On 16.03.2010 17:22, Duncan Alexander wrote:

Hi, Im having an issue with Flex debugging.

>

Im using IDEA 9.0.1 (9394) on Windows 7

>

I have a Flex only project with a numbr of librariy modules (swc) and one main module (swf).Everything compiles fine. The output from the swf module is dropped into an exploded WAR directory in a JBOSS deployemtn directory. I can fire up a browser and hit the application ok, referencing either SWF or wrapper HTML. I can also setup a run configuration and run the application as either SWF through FlashPLayer or URL through a browser. BUT. If I try to debug the same run configuration, the Debug tab opens and then .... nothing.

>

Sometimes there is an error which states, http://www.google.com/search?hl=en&client=firefox-a&hs=9rS&rls=org.mozilla%3Aen-GB%3Aofficial&q=%22Unexpecteddebuggedplayercommunicationproblem%22+&aq=f&aqi=&aql=&oq=But only on the first attempt to debug. After that, nothing.

>

I have specified IExplorer as the default browser in the IDEA settings so I dont think its the Firefox 3 fdb problem.

>

The URL specified in the run configuration includes  ?debug=true on the end of the URL.

>

Ive updated idea.properties and added the line 'idea.is.internal=true'. Im tailing the logfile and it doesnt show any errors.

>

Any pointers? It was all going so well until this point

>

cheers

Duncan

>

---

Original message URL: http://www.jetbrains.net/devnet/message/5258692#5258692

 

 

--

Best regards,

   Maxim Mossienko

IntelliJ Labs / JetBrains Inc.

http://www.intellij.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Mar 16, 2010 6:30 PM in response to: Duncan Alexander
Re: Flex application not starting in debug mode

Does the problem reproduces if you launch fdb (from Flex SDK) manually?

 

On 16.03.2010 18:09, Duncan Alexander wrote:

Hi, debug player already installed. I can debug the same project from FlashBuilder.

>

cheers

>

Duncan

>

---

Original message URL: http://www.jetbrains.net/devnet/message/5258698#5258698

 

 

--

Best regards,

   Maxim Mossienko

IntelliJ Labs / JetBrains Inc.

http://www.intellij.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Mar 16, 2010 7:03 PM in response to: Duncan Alexander
Re: Flex application not starting in debug mode

Ok, please, provide trace per instructions given

http://youtrack.jetbrains.net/issue/IDEA-24442#comment=27-66903

 

On 16.03.2010 18:56, Duncan Alexander wrote:

Hi,

     no it seems to connect ok from the FDB command line. Output below...

>

(fdb) run http://localhost:8080/radon_java_webapp/bin/Main.html?debug=true

Attempting to launch and connect to Player using URL

http://localhost:8080/radon_java_webapp/bin/Main.html?debug=true

Player connected; session starting.

Set breakpoints and then type 'continue' to resume the session.

SWF /radon_java_webapp/bin/Main.swf - 7,311,463 bytes after decompression

(fdb)

>

>

>

cheers

>

Duncan

>

---

Original message URL: http://www.jetbrains.net/devnet/message/5258707#5258707

 

 

--

Best regards,

   Maxim Mossienko

IntelliJ Labs / JetBrains Inc.

http://www.intellij.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Mar 20, 2010 11:59 PM in response to: Duncan Alexander
Re: Flex application not starting in debug mode

Hi

Check the setting of launch option in Flex run configuration it should

not be "Debug already running player"

 

On 17.03.2010 16:13, Duncan Alexander wrote:

Hi, so, this next bit is a little strange.

>

I followed your instructions, exactly, and nothing more. When I ran the debug session in Intellij it appeared to start working, albeit not completely (no browser or flashplayer opens).

>

The console now display this.....

>

        Adobe fdb (Flash Player Debugger) build 4852

        Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.

        Waiting for Player to connect

>

..And I was able to connect by opening a browser manually, hitting the correct URL, right click, select debugger, then connect.

>

So, Ive no idea what started it working. The only thing I can think is that I had not set any breakpoints on all the ocassions I had attempted to debug previously. Although, once I removed the breakpoint I had added on your instructions it still appeared to work. Maybe something was caching ??

>

In summary, Its still not opening a browser and connecting automatically but I can manually attach the debugger which allows me to continue working. Ive attached the trace output below anyway just in case this might shed some light but it doesnt appear to show any errors.

>

>

=========================================

>

2010-03-17 13:11:49,875 1043838  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831509875 Adobe fdb (Flash Player Debugger) build 4852

Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.

2010-03-17 13:11:49,875 1043838  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831509875 Processed by com.intellij.lang.javascript.flex.debug.FlexDebugProcess$ReadGreetingCommand

2010-03-17 13:11:49,875 1043838  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831509875 Sent:run

2010-03-17 13:11:49,887 1043850  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831509887 Waiting for Player to connect

2010-03-17 13:11:49,887 1043850  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831509887 Processed by com.intellij.lang.javascript.flex.debug.FlexDebugProcess$LaunchBrowserCommand

2010-03-17 13:11:59,543 1053506  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831519543 Player connected; session starting.

Set breakpoints and then type 'continue' to resume the session.

SWF /radon_java_webapp/bin/Main.swf - 7,324,675 bytes after decompression

2010-03-17 13:11:59,543 1053506  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831519543 Processed by com.intellij.lang.javascript.flex.debug.FlexDebugProcess$LaunchBrowserCommand

2010-03-17 13:11:59,544 1053507  DEBUG - pt.flex.debug.FlexDebugProcess - 1268831519543 Sent:continue

=========================================

>

regards

>

Duncan

>

---

Original message URL: http://www.jetbrains.net/devnet/message/5258783#5258783

 

 

--

Best regards,

   Maxim Mossienko

IntelliJ Labs / JetBrains Inc.

http://www.intellij.com

"Develop with pleasure!"

 

More Like This

  • Retrieving data ...