Quick tip: Enabling error Stack Traces in release build

When you want to get a stack trace for a error in a release version of your AIR application you need to provide the compiler.verbose-stacktraces compiler option:


This will allow you to use the error.getStackTrace(); function of the Error object.

In FlashBuilder you need to add this parameter in Project properties → Actionscript Compiler → Additional compiler arguments window.

Livedocs definition of the option:

Generates source code that includes line numbers. When a run-time error occurs, the stacktrace shows these line numbers.

Enabling this option generates larger SWF files.

source: Stakoverflow