Debugging command that displays variable values on the output window.
[Debug].Trace exp
exp:Any evaluation expression.
The Trace command is intended for use in debugging and by default works only in the IDE.
Its normal use is to check the value of the variables during debugging.
// All output sent to Debug Window
Debug.Show
Local a As Int32, b As Variant
a = 12 : b = 12
Trace a = b // Prints a = b = True
Trace a // Prints a = 12
b = Missing
Trace b // Prints b = (missing)
Trace IsMissing(b) // Prints IsMissing(b) = True
Trace is a shortcut for Debug.Trace, a method of the Debug object like Assert and Print. By default the Debug object is disabled for final executables, but it can be enabled through the Compiler tab in the Properties dialog.
{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}