Skip to content

@ue-too/being-devtools / attachMachineDebugger

Function: attachMachineDebugger() ​

attachMachineDebugger(machine, options?): AttachHandle

Defined in: attach.ts:98

Attaches a machine to the page's shared floating panel, creating the panel on first use. Press Ctrl+Shift+M (Cmd+Shift+M on macOS) to open it.

Parameters ​

machine ​

MachineLike

options? ​

AttachOptions

Returns ​

AttachHandle

Example ​

ts
const handle = attachMachineDebugger(machine, { name: 'pan-control' });
// on teardown
handle.dispose();