The trace statement prints debug outputs.
traceexpression‑1,expression‑2, ... ;
The trace statement expects one or more expressions that are evaluated when the statement is executed. The results of these expressions are converted in text and output to the Log window or to debugging console in the target system. The trace statement is an useful tool when you are evaluating or debugging the application. For example:
// Is the view visible and where is it placed? trace "STATUS OF THE VIEW:", SomeTextView.Visible, SomeTextView.Bounds;
At the runtime, the above example produces following log entry within the Log window: