Class Debug

The Debug class provides various functionality relating to debugging and logging.

Hierarchy

  • FrameworkObject
    • Debug

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns Debug

Properties

traceOutputEnabled: boolean

Accessors

  • get messageCount(): number
  • Gets the number of new entries.

    Returns number

Methods

  • Removes all log entries.

    Parameters

    Returns void

  • Logs a new informative message to the global debug log.

    Parameters

    • message: any

      Message to log.

    • Optionalcategory: number

      Optional index of the category to group the message under.

    Returns void

  • Logs a new error message to the global debug log.

    Parameters

    • message: any

      Message to log.

    • Optionalcategory: number

      Optional index of the category to group the message under.

    Returns void

  • Logs a new message to the global debug log using the provided type.

    Parameters

    • message: any

      Message to log.

    • verbosity: EnumValue<LogVerbosity, number>

      Verbosity level defining message importance.

    • Optionalcategory: number

      Optional index of the category to group the message under.

    Returns void

  • Logs a new trace message to the global debug log.

    Parameters

    • message: any

      Message to log.

    • Optionalcategory: number

      Optional index of the category to group the message under.

    Returns void

  • Logs a new warning message to the global debug log.

    Parameters

    • message: any

      Message to log.

    • Optionalcategory: number

      Optional index of the category to group the message under.

    Returns void

  • Saves a log about the current state of the application to the specified location.

    Parameters

    Returns void

  • Submits a crash report to the RSX server.

    Parameters

    • crashReportData: {
          contents: JsonObject;
          directoryPath: string;
          userInfo: string;
      }

      The log entry to submit.

      • contents: JsonObject
      • directoryPath: string
      • userInfo: string
    • engineVersion: string

      The current engine version.

    • OptionalfnOnSubmitted: ((isSuccess: boolean) => void)
        • (isSuccess): void
        • Parameters

          • isSuccess: boolean

          Returns void

    Returns void

Events

onLogEntryAdded: Event<[Immutable<LogEntry>], void>

Triggered when a new entry in the log is added.

Sim thread only.

onLogCleared: Event<[], void>

Triggered when the log is cleared.

Sim thread only.