Skip to main content

XErrorOptions

Describes how the game should behave when an error occurs in the gaming OS or gaming runtime.

Syntax

Constants

Remarks

XErrorOptions is used by the XErrorSetOptions function to describe how the game should behave when an error occurs, depending on whether a debugger is present. If OutputDebugStringOnError or DebugBreakOnError is specified and a debugger is present, a debug string containing the HRESULT error code, current thread ID, and error message is sent to the debugger for display. If DebugBreakOnError is specified, the game breaks into the debugger.

Requirements

Header: XError.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XError members
XErrorSetOptions
Last modified on August 20, 2026