← Standard library

Debug

static class Debug
import Debug from Wax;

Host-routed diagnostic logging, assertions, debugger breaks, and stack traces. Assertions panic when false; logging does not throw an Error.

Debug.wax:5

Inherits from object. Follow these links for inherited members.

Members

Logmethod

public static fn Log(string message) : void

Sends an informational message through the host logging callback.

Debug.wax:11

Warnmethod

public static fn Warn(string message) : void

Sends a warning message through the host logging callback.

Debug.wax:15

Errormethod

public static fn Error(string message) : void

Sends an error-level message through the host logging callback; this does not itself panic.

Debug.wax:19

Assertmethod

public static fn Assert(bool condition) : void

Panics with Assertion failed when condition is false.

Debug.wax:25

AssertMessagemethod

public static fn AssertMessage(bool condition, string message) : void

Panics with the supplied message when condition is false.

Debug.wax:32

Breakmethod

public static fn Break() : void

Invokes the attached debug-break callback, or does nothing when none is attached.

Debug.wax:40

StackTracemethod

public static fn StackTrace() : string

Returns a formatted trace from the runtime trace state.

Debug.wax:46