C# Class CryEngine.Debug

Contains methods useful for tracking down bugs.
Mostrar archivo Open project: PoppermostProductions/CryMono

Public Methods

Method Description
DisplayException ( Exception ex, bool fatal = false ) : void

Displays an exception via the CryMono exception form.

Log ( string format, LogType type = LogType.Message ) : void

Logs a message to the console

LogAlways ( string format ) : void

Logs a message to the console, regardless of log_verbosity settings

LogError ( string format ) : void

Logs an error to console

LogException ( Exception ex ) : void

Logs an exception message to the console

Useful when exceptions are caught and data is still needed from them

LogStackTrace ( LogType type = LogType.Message ) : void
LogWarning ( string format ) : void

Outputs a warning message

Private Methods

Method Description
Debug ( ) : System
UnhandledExceptionOccurred ( object sender, UnhandledExceptionEventArgs e ) : void

Method Details

DisplayException() public static method

Displays an exception via the CryMono exception form.
public static DisplayException ( Exception ex, bool fatal = false ) : void
ex Exception The exception that occurred
fatal bool Indicates if this exception is fatal
return void

Log() public static method

Logs a message to the console
public static Log ( string format, LogType type = LogType.Message ) : void
format string
type LogType
return void

LogAlways() public static method

Logs a message to the console, regardless of log_verbosity settings
public static LogAlways ( string format ) : void
format string
return void

LogError() public static method

Logs an error to console
public static LogError ( string format ) : void
format string
return void

LogException() public static method

Logs an exception message to the console
Useful when exceptions are caught and data is still needed from them
public static LogException ( Exception ex ) : void
ex Exception
return void

LogStackTrace() public static method

public static LogStackTrace ( LogType type = LogType.Message ) : void
type LogType
return void

LogWarning() public static method

Outputs a warning message
public static LogWarning ( string format ) : void
format string
return void