![]() |
Debug.Log Extensions
Documentation (1.1.9)
|
Utility class containing Debugging methods similar to the Debug class, with three main differences:
Static Public Member Functions | |
static void | Log ([CanBeNull]object message, Object context=null) |
Logs a message to the console. More... | |
static bool | Ensure (bool condition, Object context=null) |
Logs an error message to the Console if condition is not true and returns true if condition was true or false if it was not. More... | |
static bool | Ensure (bool condition, int channel, Object context=null) |
Logs an error message to the Console if condition is not true and returns true if condition was true or false if it was not. More... | |
static bool | Guard (bool condition, Object context=null) |
Logs an error message to the Console if condition is not true and returns true if condition was false or true if it was not. More... | |
static bool | Guard (bool condition, int channel, Object context=null) |
Logs an error message to the Console if condition is not true and returns true if condition was false or true if it was not. More... | |
static void | Guard< TException > (bool condition, params object[] exceptionArguments) |
Throws an exception of type TException if condition is not true . More... | |