I'm totally new to actionscript,
and such a tool like firebug will really help a lot!
I'm totally new to actionscript,
and such a tool like firebug will really help a lot!
Alcon is a lightweight debugging tool for ActionScript developers that provides several straightforward and quickly accessible methods to debug any ActionScript 2 or ActionScript 3 application, be it from the Web Browser, the standalone Flash Player or an AIR Runtime.
I like very much MonsterDebugger, easy to use, for Flash, Flex, AIR. Check it out here - http://www.monsterdebugger.com/
If you're developing Flex or Air applications then I would definitely recommend the Eclipse IDE with the Flex SDK plugin.
If you're using the Flash environment try pressing Control-Shift-Enter to launch your swf. This will open up the debugger (press the green arrow to begin code execution).
If you're using Flex Builder you will have a full fledged debugger at your disposal.
In either environment you can set break points, these are points you can specify in your code where code execution needs to halt so you can investigate what's going on.
You can use LocalConnection
class to communicate with other swfs. I use this concept for viewing traced messages in browser.
I have the code for these, but does SO allow posting files? The code grew a little long when I implemented searching and highlighting the console with regex.
If you're using command-line tools (rather than flex builder or flashIDE) you can use the command-line debugger, FDB. You can find it in your flexSDK/bin folder. There is plenty of documentation out there for this (fairly frustrating) tool.