Difference between revisions of "System.DebugLog"

From Xojo Documentation

(SMBot: new page by automated transformation)
 
 
(9 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
| ownertype=module
 
| ownertype=module
 
| scope=public
 
| scope=public
| parameters=msg as [[String]]
+
| parameters=msg As [[String]]
 
| platform=all
 
| platform=all
| newinversion=5.5
 
 
}}
 
}}
Writes ''msg'' in the following ways, depending on your platform.  
+
{{Description
 +
|text = Outputs msg to the system debug log.}}
  
On Windows, it logs to the debugger, so programs like DebugView can be used to view the string. On Macintosh, it uses DebugStr; it will log to the Console on Mac OS X. On Linux, it prints the message to StdErr.
+
== Notes ==
 +
On Windows, it logs to the debugger, so programs like DebugView can be used to view the string. On macOS, it logs to the Console. On Linux, it prints the message to StdErr.
 +
 
 +
You can also view DebugLog output using the Messages panel in Xojo which is displayed by clicking the Messages icon at the bottom of the Xojo workspace window.
 +
 
 +
[[Category:Debugging]]
 +
[[Category:Language Debugging]]

Latest revision as of 21:05, 9 December 2020

Method

System.DebugLog(msg As String)

Supported for all project types and targets.

Outputs msg to the system debug log.

Notes

On Windows, it logs to the debugger, so programs like DebugView can be used to view the string. On macOS, it logs to the Console. On Linux, it prints the message to StdErr.

You can also view DebugLog output using the Messages panel in Xojo which is displayed by clicking the Messages icon at the bottom of the Xojo workspace window.