PDA

View Full Version : help guide on Debug.



TJ_Tigger
12-03-2003, 11:22 AM
Excerpt from Scripting Guide->Debugging Your Scripts

Debug.SetTraceMode
AutoPlay Media Studio can run in a special “trace” mode at run time that will print information about every line of script that gets executed to the debug window, including the value of Application.GetLastError() if the line involves calling a built-in action. You can turn this trace mode on or off by using the Debug.SetTraceMode action:

Debug.SetTraceMode(turn_on);

...where turn_on is a Boolean value that tells the program whether to turn the trace mode on or off.

Here is an example:

Debug.ShowWindow(true);
Debug.SetTraceMode(true);


Shouldn't the bolded line be Debug.SetTraceMode(enable) or Debug.SetTraceMode(true/false)

I know what it is saying but it seems to me to be saying it in a weird way with the turn_on terminology.

Tigg