Table of Contents

Class GLDebug

Namespace
Gamelogic.Extensions
Assembly
Assembly-CSharp.dll

Class that contains methods useful for debugging. All methods are only compiled if the DEBUG symbol is defined.

public static class GLDebug
Inheritance
GLDebug
Inherited Members

Methods

Assert(bool, string, Object)

Check whether the condition is true, and print an error message if it is not.

[Version(1, 2, 0)]
[Conditional("DEBUG")]
public static void Assert(bool condition, string message, Object context = null)

Parameters

condition bool
message string
context Object

Log(object, Object)

[Conditional("DEBUG")]
public static void Log(object message, Object context = null)

Parameters

message object
context Object

Log(string, object, Object)

[Conditional("DEBUG")]
public static void Log(string type, object message, Object context = null)

Parameters

type string
message object
context Object

LogError(object, Object)

[Conditional("DEBUG")]
public static void LogError(object message, Object context = null)

Parameters

message object
context Object

LogError(string, object, Object)

[Conditional("DEBUG")]
public static void LogError(string type, object message, Object context = null)

Parameters

type string
message object
context Object

LogWarning(object, Object)

[Conditional("DEBUG")]
public static void LogWarning(object message, Object context = null)

Parameters

message object
context Object

LogWarning(string, object, Object)

[Conditional("DEBUG")]
public static void LogWarning(string type, object message, Object context = null)

Parameters

type string
message object
context Object