Adobe Flash Player 10 debugger not working

newbieal
newbieal used Ask the Experts™
on
I right-click in the browser window and select Debugger.  I get a window that says, Where is the debugger or host application running?  I select localhost and get, a connection to the Debugger or Profiler could not be established by Adobe Flash Player 10.  I then try again but this time with my IP and still get the same message.  Any ideas what the issue could be?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If you want to use the debugger the easiest option would be to choose to debug from inside Flash/Flex (whatever you are building in). Because this starts an instance of the debugger in these programs and when your flash file is run it connects automatically to the debugger.

Author

Commented:
Yes, that is true, but I still should be able to launch debugger from browser.

Commented:
Yes, but the only other way to achieve this is through the command line debugger.

I don't know if you're using flash or flex but it's included in the Flex SDK in the flex_install_dir/bin folder.

It is called fdb.

type this for all the available commands:
fdb help

and this for a brief tutorial on how to use it:
fdb tutorial
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I'm using flex 3.  Checked out the fdb and when I use run (project location), it sometimes launches a window (without the app playing) and sometimes nothing happens.  Don't see the usefulness of this, unless you are saying that one can only use the debugger in the browser if they have the fdb command line window running?  

Commented:
Well the only ways I've seen and read about in adobes documentation is the debugger in flex builder and the command line debugger. I know there are 3rd party debugger you could buy and connect to but they are all different.

The only other thing the debugging version of flash player does for you apart from connect to the flex debuggers is popup error messages when they occur.

What more are you needing?

Author

Commented:
So when I right-click in a browser and selected the debugger option, what debugger is initiated?  I'm trying to figure out why the option is there and I can't get it to work.
Commented:
If you are using flash pro, it connects to that. If you are using flex builder (now i've only seen this work with the full flex builder install, not the eclipse plugin for some stupid reason but being as picky as eclipse is the only guaranteed way to have it run in there is to start it in debug mode FROM flex builder) you can start the flex debugger and it will connect to that. If you have a 3rd party debugger it can connect to that. It tries connect over port 3232.

If you want to debug fully I suggest running debug mode from flex, since you aren't able to connect to it after the fact, that will start and connect the debugger automatically for you.

Author

Commented:
I do have FB3 and start it in debug mode, then open my project in the browser, right-click to select debugger and get the option to select localhost or enter an IP.  When I do either it says it cannot connect to Flash.  I know that I can run the debug in FB3, but the browser provides the option to debug there and why this isn't working for me is rather odd.

Commented:
It won't work unless you have a debugger started!
Commented:
Here's a brief summary of your options with debugging a swf:

1. (Doesn't apply but I'll get it out of the way) If you debug from Flash Pro, it creates a connection between its own debugger and flash player.
2. If you use Flex, you can only use the built in debugger by choosing Debug As -> AIR or Flex.
3. You can run fdb, then once it is running type "run" and press enter, it will wait for a connection.
4. Use a 3rd party debugger and in that case you have to start the debugger for flash player to be able to connect to it.

Choosing debugger from the context menu will not start a debugger. It is not designed to start a debugger. It is purely there to connect to a debugger that is already running.

There are apparently hacks to get the FB3 built in debugger running without a project (I hear it's by trying to start it up to a fake url then connect flash player while it is waiting for a connection) but I have not tried this method because it is pointless. The built in debugger gives you the ability to really nail down through your code as it is debugging, this is what choosing debug in flex builder does for you.

Just having FB3 open is not enough, the debugger has to be started.

If you are really trying to connect to a debugger using what you have, i suggest using fdb if you're REALLY wanting to use the context menu debugger option. Or, just run debug in FB3.

Author

Commented:
Thanks for your patience.  I appreciate the info!

Commented:
Here is a 3rd party debugger that I had recommended to me yesterday.

http://demonsterdebugger.com/

I have not used it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial