Debug Log

You can use the IDE Debug Log window to write some debugging data, variables values or location information, as the following examples shows:

trace "Debug Output"    ! similar to DebugLog.Append("Debug Output\r\n")

trace "The procedure was called by:"; GetCallerName(); "parameter Y=";y

The DebugLog variable is used to print by the trace statement. Since the variable is empty (Nothing) when running the application as a stand alone executable, the statement will be ignored and will only generate output when running from the IDE.

Writing to the Debug Log is sometimes preferable to writing to the Log file. For example, you may not want to have your test report interlaced with print statements you put in for debugging purposes.