Interactive debugger
This is an engine debugging hook extension. It provides the opportunity to interactively introspect the engine state on each message (info/warning/error).
Functions
- int sgs_InitIDbg( sgs_Context* C, SGS_IDBG ) - initialize the debugger
- int sgs_CloseIDbg( sgs_Context* C, SGS_IDBG ) - free the debugger
Usage example
sgs_IDbg debugger; // keep this allocated while it is linked to engine // initialize and attach the debugger sgs_InitIDbg( contextPtr, &debugger ); // ...do things with the engine... // free the debugger sgs_CloseIDbg( contextPtr, &debugger );