Debugger

Debugger

The debugger utility class adds a way to "select" entities and run a filtered serializer on them. It can also create a REPL and export the selected entity to global scope to aid in debugging with the browser's web console.

Constructor

new Debugger(exportPickedopt)

Parameters:
Name Type Attributes Description
exportPicked boolean <optional>

True if the debugger should create and
update window.entity that points to the currently picked entity

Methods

inject(sumerian) → {Debugger}

Inject the debugger into the engine and create the debug panel

Parameters:
Name Type Description
sumerian SumerianRunner

A SumerianRunner reference