Table of Contents

CoherenceInputDebugger

Constructors
CoherenceInputDebugger
Fields
DEBUG_CONDITIONAL
OnDump

Called by the Dump() method, right after serialization. Contains all the debug data in a JSON format.

Properties
FramesToKeep

Number of last frames to keep in the debugger memory. If null, all frames are kept.

Methods
AcknowledgeFrame

Marks inputs from a given frame as acknowledged.

AddEvent

Stores an input related event in this frame's sample.

AddInput

Registers new input in the debugger. The following data is recorded for registered inputs:

* Received inputs

* Sent inputs

* Input buffer state for each frame

AddInputs

Adds or updates an input to the sample from a given frame.

AddState

Adds or updates a state in the sample from a given frame.

Dump

Serializes the debug data to a JSON and dumps it using the OnDump event. By default the dump is saved to a file that starts with 'inputDbg_', in a executable directory.

HandleInputReceived

Adds an input receive event to the sample.

HandleInputSent

Adds an input send event to the sample.

PushSample

Stores the last sample if the current frame has changed.

RemoveInput

Removes a input from the debugger.

SetInputBufferStates

Stores input buffer states for all registered inputs.