C# Класс CryEngine.Debug

Contains methods useful for tracking down bugs.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Debug ( ) : System
UnhandledExceptionOccurred ( object sender, UnhandledExceptionEventArgs e ) : void

Описание методов

DisplayException() публичный статический Метод

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
Результат void

Log() публичный статический Метод

Logs a message to the console
public static Log ( string format, LogType type = LogType.Message ) : void
format string
type LogType
Результат void

LogAlways() публичный статический Метод

Logs a message to the console, regardless of log_verbosity settings
public static LogAlways ( string format ) : void
format string
Результат void

LogError() публичный статический Метод

Logs an error to console
public static LogError ( string format ) : void
format string
Результат void

LogException() публичный статический Метод

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
Результат void

LogStackTrace() публичный статический Метод

public static LogStackTrace ( LogType type = LogType.Message ) : void
type LogType
Результат void

LogWarning() публичный статический Метод

Outputs a warning message
public static LogWarning ( string format ) : void
format string
Результат void