Debug.SendToFile

number Debug.SendToFile ( 

string  Filename,

boolean Overwrite = true )

Example 1

Debug.SendToFile("C:\\Temp\\DebugOutput\\debug_log.txt", true);
Debug.Print("Readme button clicked");

Prints "Readme button clicked" in the debug log file named "debug_log.txt." (You could put this action in the "On Click" event for a readme button to find out if the event's actions are being performed.)

Example 2

Debug.SendToFile("C:\\Temp\\DebugOutput\\debug_log.txt", false);
Debug.Print("Mouse over event fired: " .. Debug.GetEventContext());

Appends a debug message consisting of the string ""Mouse over event fired: " followed by the current event context to the debug log file named "debug_log.txt."

See also:  Related Actions