Flash / flex applications: how can I trace trace messages?

How can I crop trace () messages from flex and flash applications?

I write Flash and Flex applications, and I use a lot of trace messages for debugging, but when I have the actual swf product, I want it to be removed from any trace messages.

thank

+3
source share
6 answers

If you export a release assembly, it will not include trace instructions. Project->Export Release Build...

I recommend doing this rather than releasing debug builds, as the compiler will also remove all debugging information, leaving you with a smaller file.

+9
source

Flex :

-omit-trace-statements=true
+6

, " " "" "".

+1

- !

Flash-: flex.

-omit-trace-statements=true -debug=false

swf .

, Flash Builder.

+1

, Flex library project ANT.

, Flash Builder, swc .

Flash Builder, ANT:

<mxmlc ...>
    ...
    <arg value="compiler.omit-trace-statements=true" />
</mxmlc>

<arg ... <compc> ( swc , ).
, :

<compc 
    debug="false"
    compiler.debug="false">
    ...
</compc>

, swc, debug=false.

+1

Source: https://habr.com/ru/post/1773814/


All Articles