MSI Factory 2.3

Debug.SetTraceMode

Debug.SetTraceMode

This is the first topic This is the last topic  

Debug.SetTraceMode

This is the first topic This is the last topic  

OverviewExamples

Debug.SetTraceMode (

boolean Enable = true )

Example 1

Debug.SetTraceMode(true); -- turn it on

Turns trace mode on. (The text after the "--" in this example is just a comment.)

Example 2

Debug.SetTraceMode(false); -- turn it off

Turns trace mode off.

Example 3

-- Show the debug window.

Debug.ShowWindow(true);

 

-- Turn on the debug trace mode.

Debug.SetTraceMode(true);

 

-- Print some example text to the debug window.

Debug.Print("This is a test line that will be printed.\r\n");

 

-- Perform some addition and write it out to the debug window.

total = 6 + 2;

Debug.Print(total.."\r\n");

 

-- Print the current date to the debug window.

Debug.Print(System.GetDate(DATE_FMT_ISO).."\r\n");

 

-- Determine if trace mode is turned on and print the result to the debug window.

trace_mode = Debug.GetTraceMode();

if trace_mode then

   Debug.Print("Trace mode is on.\r\n");

else

   Debug.Print("Trace mode is off.\r\n");

end

This example uses a few of the debug actions to output content to the debug window.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us