Table of Contents

Struct DebugApi

Namespace
LunyScript.Api
/
Assembly
LunyScript.dll

Provides diagnostics blocks which are omitted from release builds, unless the scripting symbol LUNYSCRIPT_DEBUG is defined.

public readonly struct DebugApi
Expand Details ...
Inherited Members

Methods

Break(String)

Triggers a debugger breakpoint if debugger is attached by calling System.Diagnostics.Debugger.Break(). Completely stripped in release builds. Only breaks when DEBUG or LUNYSCRIPT_DEBUG is defined.

public ActionBlock Break(String message = null)

Parameters

Type Name Description
String
message

Returns

ActionBlock

Log(VariableBlock)

Logs a variable. Alias for LogInfo().

public ActionBlock Log(VariableBlock variableBlock)

Parameters

Type Name Description
VariableBlock
variableBlock

Returns

ActionBlock

Log(String)

Logs a message. Alias for LogInfo().

public ActionBlock Log(String message)

Parameters

Type Name Description
String
message

Returns

ActionBlock

Log(params String[])

public ActionBlock Log(params String[] messages)

Parameters

Type Name Description
String[]
messages

Returns

ActionBlock

LogError(String)

Logs a debug "error" (red text) message. Only logs when DEBUG or LUNYSCRIPT_DEBUG is defined, stripped in release builds.

public ActionBlock LogError(String message)

Parameters

Type Name Description
String
message

Returns

ActionBlock

LogInfo(VariableBlock)

Logs a variable.

public ActionBlock LogInfo(VariableBlock variableBlock)

Parameters

Type Name Description
VariableBlock
variableBlock

Returns

ActionBlock

LogInfo(String)

Logs a debug message that is completely stripped in release builds. Only logs when DEBUG or LUNYSCRIPT_DEBUG is defined.

public ActionBlock LogInfo(String message)

Parameters

Type Name Description
String
message

Returns

ActionBlock

LogWarning(String)

Logs a debug "warning" (yellow text) message. Only logs when DEBUG or LUNYSCRIPT_DEBUG is defined, stripped in release builds.

public ActionBlock LogWarning(String message)

Parameters

Type Name Description
String
message

Returns

ActionBlock