Table of Contents

Class Switches

Namespace
MonoMod
Assembly
MonoMod.Utils.dll
public static class Switches
Inheritance
Switches

Fields

DMDDebug
Boolean. Specifies the default value for Debug. Refer to docs/Switches.md for details.
DMDDumpTo
String. Specifies the directory to dump DynamicMethodDefinitions to for debugging. Refer to docs/Switches.md for details.
DMDType
String. Specifies the backend to use for DynamicMethodDefinitions. Refer to docs/Switches.md for details.
DebugClr
Boolean. Tells MonoMod that it is running on a Debug or Checked build of CoreCLR.
JitPath
String. Full path to the ClrJIT binary used by the current runtime.
LogInMemory
Boolean. Enables the in-memory logger.
LogRecordHoles
Boolean. Forces the logger to always record the value of message holes.
LogReplayQueueLength
Integer. Sets the length of the logger's replay queue, in log messages. If the value is zero (the default), the replay queue is disabled.
LogSpam
Boolean. Enables the logging of Spam messages to default sinks (file and memory).
LogToFile
String. Enables the file sink of the logger. Contains the name of the log file to write. - indicates standard out.
LogToFileFilter
String. Provides a comma or semicolon separated list of sources to write to disk. If empty, all soruces are written. Sources are typically the MonoMod assembly name (e.g. MonoMod.Utils or MonoMod.RuntimeDetour).
RunningOnWine
Boolean. Forces PlatformDetection to detect that Windows is Wine.

Methods

ClearSwitchValue(string)
Clears the specified switch.
SetSwitchValue(string, object?)
Sets the value associated with a switch.
TryGetSwitchEnabled(string, out bool)
TryGetSwitchValue(string, out object?)