setDebug static method

void setDebug(
  1. Object target,
  2. JoltDebugFn fn
)

Sets a custom debug function for a specific target object.

The fn callback will be invoked whenever a debug operation occurs for the target node. This allows per-node debugging customization.

Implementation

@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
static void setDebug(Object target, JoltDebugFn fn) {
  joltDebugFns[target] = fn;
}