DebugLog
Retrieves or sends a string to the global Algosim debug log.
Syntax
-
DebugLog()
-
DebugLog(s)
-
s
is a string
-
Description
DebugLog()
retrieves the global Algosim debug log as an array of strings. Each string starts with a timestamp of the form YYYY-MM-DD hh:nn:ss.zzz followed by a space (U+0020) and the actual log message.
DebugLog(s)
sends the string s
to the global Algosim debug log as a side effect. The function returns s
. The current time is saved automatically and need not be included in s
.
Examples
DebugLog("Computing convex hull...");
DebugLog()
2025-04-12 16:40:25.840 Computing convex hull... 2025-04-12 16:40:32.261 Convex hull computed.
Notes
In addition to the (single) Algosim debug log, you can also create named buffers.