The other Andrew Hunt

Another Flash Blog!

Geting line numbers for runtime exceptions in Flash Player

without comments

This is a simple technique I learned from co-worker Miguel Cordones that was a surprise to me, but obvious one I knew it. I did a quick survey and a surprising number of the other developers didn’t know it either:

When you publish your SWF turn debugging on!

With this option turned on, you will get some very useful information: the line number of all runtime exceptions.

Turning on the debug option

Flash IDE: Publish Settings->Flash Tab->Permit debugging

MXMLC: set option debug =”true”

Of course, when you’re ready to do a release build, turn off the debug option! Using the debug option adds a bunch of debugging junk to your files, makes them substantially bigger and affects performance.

Written by admin

October 30th, 2009 at 7:51 am

Posted in AS3 Development

Leave a Reply