Debug

Debug struct

Collection of debug methods allowing it sending debug information to registered listeners. All output functions work in Debug only. This is a static type with no instance services. You should never create instances of it by any means.

class Debug

Methods

MethodDescription
static void Assert(bool)Assert condition and send information on failure.
static void Assert(bool, const String&)Assert condition and send information on failure.
static void Assert(bool, const char *)Assert condition and send information on failure.
static void Assert(bool, const String&, const String&)Assert condition and send information on failure.
static void Fail(const String&)Send fail message.
static System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TraceListener>>> get_Listeners()Accesses static list of listeners.
static void Print(const String&)Print message to debug interface.
static void Print(const String&, const System::ArrayPtr<SharedPtr<System::Object>>&)Print message to debug interface.
static void Write(const String&)Writes string to debug interface.
static void Write(const char_t *)Writes string to debug interface.
static void WriteIf(bool, const System::String&)Writes string to debug interface if a condition is true.
static void WriteLine(const String&)Writes line to debug interface.
static void WriteLine(const String&, const String&)Writes line to debug interface.
static void WriteLine(const char_t *)Writes line to debug interface.
static void WriteLine(const SharedPtr<Object>&)Writes line to debug interface.
static void WriteLineIf(bool, const System::String&)Writes line to debug interface if a condition is true.

See Also