Liking cljdoc? Tell your friends :D

commando.debug

Debug visualization tools for commando instruction execution.

Debug visualization tools for commando instruction execution.
raw docstring

execute-debugclj/s

(execute-debug registry instruction)
(execute-debug registry instruction mode)

Execute an instruction and print debug visualization. Returns the execution result.

Accepts a single mode keyword or a vector of modes (printed in order).

Modes: :table — tabular execution map: order, type, deps, result value (default) :tree — data flow tree with resolved values at each node :graph — compact dependency graph showing structure only :stats — execution statistics: timing, command counts, errors :instr-before — wide pprint of the original instruction (before execution) :instr-after — wide pprint of the instruction after execution

Usage: (execute-debug registry instruction) (execute-debug registry instruction :tree) (execute-debug registry instruction [:instr-before :table :stats])

Example: (execute-debug [builtin/command-from-spec] {:a 1 :b {:commando/from [:a] :=> [:fn inc]}} [:instr-before :table :stats])

Execute an instruction and print debug visualization. Returns the execution result.

Accepts a single mode keyword or a vector of modes (printed in order).

Modes:
  :table        — tabular execution map: order, type, deps, result value (default)
  :tree         — data flow tree with resolved values at each node
  :graph        — compact dependency graph showing structure only
  :stats        — execution statistics: timing, command counts, errors
  :instr-before — wide pprint of the original instruction (before execution)
  :instr-after  — wide pprint of the instruction after execution

Usage:
  (execute-debug registry instruction)
  (execute-debug registry instruction :tree)
  (execute-debug registry instruction [:instr-before :table :stats])

Example:
  (execute-debug
    [builtin/command-from-spec]
    {:a 1 :b {:commando/from [:a] :=> [:fn inc]}}
    [:instr-before :table :stats])
sourceraw docstring

execute-traceclj/s

(execute-trace registry instruction)
(execute-trace registry instruction opts)

Trace all nested commando/execute calls with timing.

Calls commando/execute with the given registry and instruction, prints a tree showing every execute invocation (including recursive calls from macros/mutations) with timing stats and instruction keys.

Add :__title or "__title" to an instruction to label it in the trace.

Usage: (execute-trace registry instruction) (execute-trace registry instruction {:error-data-string false})

Trace all nested commando/execute calls with timing.

Calls commando/execute with the given registry and instruction,
prints a tree showing every execute invocation (including recursive
calls from macros/mutations) with timing stats and instruction keys.

Add :__title or "__title" to an instruction to label it in the trace.

Usage:
  (execute-trace registry instruction)
  (execute-trace registry instruction {:error-data-string false})
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close