Skip to content

@ue-too/being-devtools / attachMachineDebugger

函式: attachMachineDebugger() ​

attachMachineDebugger(machine, options?): AttachHandle

定義於: 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.

參數 ​

machine ​

MachineLike

options? ​

AttachOptions

回傳 ​

AttachHandle

範例 ​

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