Reputation: 2625
How to use flashbug? Comparing the printscreens from addon page: https://addons.mozilla.org/en-us/firefox/addon/flashbug/
with printscreen that I made: http://img42.imageshack.us/img42/7686/flbug.jpg http://img840.imageshack.us/img840/1255/flbug2.jpg
On my printscreens flashbug looks empty. Additionally, I made a statement trace("aaa"); and nothing appears in tab "Trace". So obviously I must be doing something wrong.
Or maybe there is a different/easier way to debug flash from a browser.
Upvotes: 1
Views: 3500
Reputation: 2786
You need to run a swf file build in debug mode.
You will not see any traces if you:
Use next attribute while compiling with mxmlc
-omit-trace-statements=false
Use Flah, and in the Publish Settings have "Omit trace Action" checked
If you want to test if it's problem in your swf or flash bug, Just try to serf the web with firebig opened and look at Flash Console, you will see some traces there from the sites with a swf's.
Upvotes: 2
Reputation: 5978
Are you sure you are using the debug version of Flash Player? To figure it out, just right click on an swf in firefox, you should see:
Upvotes: 1
Reputation: 6094
i'm always using firebug to print debug messages from flash. there is a ExternalInterface class in actionscript3, which can be used make to calls to the firebug console, like this:
ExternalInterface.call('console.log', 'hello');
you can even pass whole objects from actionscript, ie:
var object = {message:'hello'}
ExternalInterface.call('console.log', object);
see the docs on ExternalInterface for further explanations.
Upvotes: 1