A valid TracerModule object
The source code / input string to trace
Optionalconfig: unknownOptional config object with { meta?, options? } structure
Promise resolving to an array of trace steps
Curryable: trace(tracerModule) returns a pre-bound function that accepts
(code, config?). Use this to avoid repeating the tracer arg when tracing
multiple snippets with the same tracer.
All validation and config prep is SYNCHRONOUS — errors throw immediately.
Only the final record() call is async.
Traces code execution using the given tracer module.
A valid TracerModule object
Promise resolving to an array of trace steps
Curryable: trace(tracerModule) returns a pre-bound function that accepts
(code, config?). Use this to avoid repeating the tracer arg when tracing
multiple snippets with the same tracer.
All validation and config prep is SYNCHRONOUS — errors throw immediately.
Only the final record() call is async.
Traces code execution using the given tracer module.