views:

1877

answers:

4

Using Flex Builder 3 :
I have been getting this problem in every single debug launch for past few hours.
I used to get this earlier too, but once in a while, not with every debug launch.
I found out that flex debugger uses a certain 7395 port but I can't figure out
how to change it?

+1  A: 

Hey,

I remember getting this problem a few times. It might have to do with the Flex Profiler (I used to accidentally click that every now and then trying to launch the debugger).

If you start the Profiler and stop it too fast, it will add something to a file in your home directory that it shouldn't.

Check out /path/to/home/mm.cfg on your operating system (on mac, you can open it in textmate with mate ~/mm.cfg). The mm.cfg file stores some information about debugging in Flex

Then in that file, make sure this is the only content:


ErrorReportingEnable=1
TraceOutputFileEnable=1

If there's an extra line (can't remember/find it, something like

PreloadSwf=/Users/[username]/Documents/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999
), delete it.

Let me know if that fixes it.

Lance

viatropos
It works.I have deleted the mm.cfg file.In fact I had manually created this file in order to make the Profiler work with the "PreloadSwf" command. Though the Profiler didn't work even after that :-)
dta
So, basically I just deleted this file, since the Profiler wasn't working anyway.
dta
cool :). I don't know if you should delete the file though, you might want to keep it there with those two lines in there, who knows what'll happen. cheers!
viatropos
A: 

Thanks a lot! It worked for me too.. :)

Johan
A: 

This worked for me: right click on a SWF, select "Open with...", choose "Other...", select the Debug player and check the "Always Open With" checkbox.
Mac OSX / FlashBuilder4

danjp
A: 

Similar to danjp - This started happening to me after a Flash Player automatic update. I simply reinstalled the debug flash players from the Adobe Flash Player download page and everything works as expected.

PixelthisPeter