Class Debug

This class contains utility methods for debugging purposes.

Methods

Example

main
  debug.log "Starting Program..."
  debug.log "Calling method"
  do something
  debug.log "Exiting..."
  System.exit

do something
  debug.log "doing something"
  return
            

debug.log <string logMessage>

Writes a message to the log. The log output is shown on the studio's Output window.

Parameters

Example

main
  debug.log "Hello Origo!"
                

print <string logMessage>

Primary way to write a message to the log. The log output is shown on the studio's Output window.

Parameters

Example

main
  print "Hello Origo!"
                

debug.set log file to <string filename>

Writes the log output to a file.

Parameters

Example

main
  debug.set log file to "logfile.txt"
  debug.log "Hello Origo!"