[FlashCodersNY] -debug=false does not remove trace statements

Tim Beynart timbeynart at gmail.com
Wed May 27 14:47:48 PDT 2009


Hudson, debug=true has nothing to do with viewing trace statements.  I can
load up any version of a swf you compile, and if there are traces I will see
them with the debug player.  I don't need a wrapper.  I assume trace is a
core feature of the player that can't be circumvented by the compiler.
The "debug" option compiles debug hooks into the swf and opens the TCP
connection for debugging.

On Wed, May 27, 2009 at 3:17 PM, Hudson Ansley <hudsonansley at gmail.com>wrote:

> Hi FlashCoderNYrs,
> I mentioned this in an unrelated post, but I found something else
> about trace statements and mxmlc I thought might interest some of you.
>
> Using mxmlc and leaving off the -debug=true option only disables the
> debugger and removes some debugging information, it does *not* remove
> the trace statements from the swf as the Flash IDE does with "omit
> trace actions" checked. The trace statements no longer produce output
> normally, but the traces are still there and (I think) still being
> executed.
> The new thing I found out is that to view the trace statements in a
> supposed "release" version from mxmlc (no debug) all you have to do is
> load the swf into another swf that has been compiled with -debug=true
>
> For those using FlashDevelop, one solution I've been using to remove
> traces from the release compile is setting a compile option and using
> that to wrap trace statements.
>
> I wrote this "snippet" code for trace to make this wrapping simpler
> (and it automatically adds the current class and function name to the
> start of the trace, which I also find nice )
>
> CONFIG::debug {trace ( "$(TypName):$(MbrName) " $(EntryPoint) );}
>
> So, then I just change the value of debug in the project
> properties-->compiler options-->additional compiler options true or
> false depending on whether I want the debug code, usually traces, in
> the swf:
>
> -define+=CONFIG::debug,false
>
>
> BTW- changing this back and forth is a bit tiresome - I have a request
> into the FD people to allow users to set up their own basic command
> line compile templates release and debug and to be able to add more
> targets to the dropdown
>
> Regards,
> Hudson
>
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
>
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>



-- 
+ Tim Beynart
+ tim at timbeynart.com
+ 706.372.6994
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.flashcodersny.org/pipermail/flashcodersny_flashcodersny.org/attachments/20090527/b2daa2bb/attachment.html>


More information about the FlashCodersNY mailing list