Google for the “undocumented” flash.trace.Trace
I guess my real question is what are the best practices on how people in industry use trace()
1 person found this helpful
Trace() is supposed to be used for debug-time diagnostics. It gets optimized out for release builds as the production players don’t output to a console for performance reasons. Flex has a logging subsystem via mx.logging.* package that can be used in production. Third parties have created things like this as well. These subsystems require “annotation”, putting in code that adds logging statements. If you forget one or are using a library that doesn’t support it, you don’t get information from it.
Flash.trace.Trace is different from the Trace() method. It is an “undocumented” feature of the player that calls you back for every function call and or line of code. Annotation is therefore not required, but it still won’t work for libraries that don’t have debug information in it.
We are looking into subsystems that don’t require annotation and work even in production.
Ah thanks for the correction.