The ``++trace()++`` function outputs debug statements, which can be read by anyone with a debug version of the Flash player. Because sensitive information could easily be exposed in this manner, ``++trace()++`` should never appear in production code.


== Noncompliant Code Example

----
    var val:Number = doCalculation();
    trace("Calculation result: " + val);  // Noncompliant
----


== Compliant Solution

----
    var val:Number = doCalculation();
----


== See

* https://www.owasp.org/index.php/Top_10-2017_A3-Sensitive_Data_Exposure[OWASP Top 10 2017 Category A3] - Sensitive Data Exposure
* http://cwe.mitre.org/data/definitions/489.html[MITRE, CWE-489] - Leftover Debug Code


ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]
