Table of Contents

Class Debug

Namespace
TaleWorlds.Library
Assembly
TaleWorlds.Library.dll
public static class Debug
Inheritance
Debug
Inherited Members

Properties

DebugManager

public static IDebugManager DebugManager { get; set; }

Property Value

IDebugManager

TelemetryManager

public static ITelemetryManager TelemetryManager { get; set; }

Property Value

ITelemetryManager

Methods

AbortGame()

public static void AbortGame()

Assert(bool, string, string, string, int)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void Assert(bool condition, string message, string callerFile = "", string callerMethod = "", int callerLine = 0)

Parameters

condition bool
message string
callerFile string
callerMethod string
callerLine int

DisplayDebugMessage(string)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void DisplayDebugMessage(string message)

Parameters

message string

FailedAssert(string, string, string, int)

public static void FailedAssert(string message, string callerFile = "", string callerMethod = "", int callerLine = 0)

Parameters

message string
callerFile string
callerMethod string
callerLine int

GetDebugVector()

public static Vec3 GetDebugVector()

Returns

Vec3

GetTelemetryLevelMask()

public static uint GetTelemetryLevelMask()

Returns

uint

Print(string, int, DebugColor, ulong)

public static void Print(string message, int logLevel = 0, Debug.DebugColor color = DebugColor.White, ulong debugFilter = 17592186044416)

Parameters

message string
logLevel int
color Debug.DebugColor
debugFilter ulong

PrintError(string, string, ulong)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void PrintError(string error, string stackTrace = null, ulong debugFilter = 17592186044416)

Parameters

error string
stackTrace string
debugFilter ulong

PrintWarning(string, ulong)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void PrintWarning(string warning, ulong debugFilter = 17592186044416)

Parameters

warning string
debugFilter ulong

RenderDebugFrame(MatrixFrame, float, float)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugFrame(MatrixFrame frame, float lineLength, float time = 0)

Parameters

frame MatrixFrame
lineLength float
time float

RenderDebugLine(Vec3, Vec3, uint, bool, float)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugLine(Vec3 position, Vec3 direction, uint color = 4294967295, bool depthCheck = false, float time = 0)

Parameters

position Vec3
direction Vec3
color uint
depthCheck bool
time float

RenderDebugRectWithColor(float, float, float, float, uint)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugRectWithColor(float left, float bottom, float right, float top, uint color = 4294967295)

Parameters

left float
bottom float
right float
top float
color uint

RenderDebugSphere(Vec3, float, uint, bool, float)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugSphere(Vec3 position, float radius, uint color = 4294967295, bool depthCheck = false, float time = 0)

Parameters

position Vec3
radius float
color uint
depthCheck bool
time float

RenderDebugText(float, float, string, uint, float)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugText(float screenX, float screenY, string text, uint color = 4294967295, float time = 0)

Parameters

screenX float
screenY float
text string
color uint
time float

RenderDebugText3D(Vec3, string, uint, int, int, float)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void RenderDebugText3D(Vec3 position, string text, uint color = 4294967295, int screenPosOffsetX = 0, int screenPosOffsetY = 0, float time = 0)

Parameters

position Vec3
text string
color uint
screenPosOffsetX int
screenPosOffsetY int
time float

ReportMemoryBookmark(string)

public static void ReportMemoryBookmark(string message)

Parameters

message string

SetCrashReportCustomStack(string)

public static void SetCrashReportCustomStack(string customStack)

Parameters

customStack string

SetCrashReportCustomString(string)

public static void SetCrashReportCustomString(string customString)

Parameters

customString string

SetTestModeEnabled(bool)

public static void SetTestModeEnabled(bool testModeEnabled)

Parameters

testModeEnabled bool

ShowError(string)

public static void ShowError(string message)

Parameters

message string

ShowMessageBox(string, string, uint)

public static void ShowMessageBox(string lpText, string lpCaption, uint uType)

Parameters

lpText string
lpCaption string
uType uint

ShowWarning(string)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void ShowWarning(string message)

Parameters

message string

SilentAssert(bool, string, bool, string, string, int)

public static void SilentAssert(bool condition, string message = "", bool getDump = false, string callerFile = "", string callerMethod = "", int callerLine = 0)

Parameters

condition bool
message string
getDump bool
callerFile string
callerMethod string
callerLine int

StartTelemetryConnection(bool)

[Conditional("NOT_SHIPPING")]
[Conditional("ENABLE_PROFILING_APIS_IN_SHIPPING")]
public static void StartTelemetryConnection(bool showErrors)

Parameters

showErrors bool

StopTelemetryConnection()

[Conditional("NOT_SHIPPING")]
[Conditional("ENABLE_PROFILING_APIS_IN_SHIPPING")]
public static void StopTelemetryConnection()

WatchVariable(string, object)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void WatchVariable(string name, object value)

Parameters

name string
value object

WriteDebugLineOnScreen(string)

[Conditional("_RGL_KEEP_ASSERTS")]
public static void WriteDebugLineOnScreen(string message)

Parameters

message string

Events

OnPrint

public static event Action<string, ulong> OnPrint

Event Type

Action<string, ulong>

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).