Go to: Synopsis. Return value. Related. Flags. MEL examples.
trace [-where]
string
trace is NOT undoable, NOT queryable, and NOT editable.
The trace command displays its string argument directly to standard output. It is intended to provide a mechanism for debugging Mel scripts.None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-where(-w)
|
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
// Set up globals for example // global string $myGlobalVar = "glob"; global proc suspiciousProc_1() { print "this proc cannot be trusted\n"; } // Print information as the script runs // trace -where "start of script\n"; suspiciousProc_1; trace -where ("value of $myGlobalVar " + $myGlobalVar + "\n");