*print-length* applied when serializing captured values in the data ops, so
a fat or infinite value produces a bounded string instead of hanging the
serializer. nil means unbounded.
`*print-length*` applied when serializing captured values in the data ops, so a fat or infinite value produces a bounded string instead of hanging the serializer. nil means unbounded.
*print-level* applied when serializing captured values in the data ops.
`*print-level*` applied when serializing captured values in the data ops.
(audit->data audit)Serialize a traced-fns AUDIT (from trace/audit-traces) to bencode data: a
list of namespace groups, each with the traced fns in it. Merges the fns
traced by namespace and the ones traced individually.
Serialize a traced-fns AUDIT (from `trace/audit-traces`) to bencode data: a list of namespace groups, each with the traced fns in it. Merges the fns traced by namespace and the ones traced individually.
(audit-fn->data fn-info)Serialize one fn-info map from the traced audit to bencode data.
Serialize one fn-info map from the traced audit to bencode data.
(buf-query-tree q-vec mod-str)Build and run a buffer query. Q-VEC is the base query; MOD-STR an optional
modifier like "a" (ancestors) or "d3" (descendants, depth 3). Returns the
result tree, which query-tree->trio renders or query-tree->data turns into
data.
Build and run a buffer query. Q-VEC is the base query; MOD-STR an optional modifier like "a" (ancestors) or "d3" (descendants, depth 3). Returns the result tree, which `query-tree->trio` renders or `query-tree->data` turns into data.
Maps a trace `action' string to the workspace function that applies it to a qualified function symbol.
Maps a trace `action' string to the workspace function that applies it to a qualified function symbol.
(magic-recusive-eval frm)Lets us send vars to nrepl client and back. Madness.
Lets us send vars to nrepl client and back. Madness.
(node->data node)Serialize one recorded call-tree NODE into a bencode-friendly map. Structural
fields stay native (strings, ints, nested maps and lists) so a client can
navigate them directly; the arbitrary captured values - args, arg-map and the
return (or throw) - are pr-str'd, since they can't round-trip as data. See
doc/nrepl-api.md for the documented shape.
Serialize one recorded call-tree NODE into a bencode-friendly map. Structural fields stay native (strings, ints, nested maps and lists) so a client can navigate them directly; the arbitrary captured values - args, arg-map and the return (or throw) - are `pr-str`'d, since they can't round-trip as data. See doc/nrepl-api.md for the documented shape.
(pos-inside-line-column? pos-line
pos-column
start-line
end-line
start-col
end-col)(pr-value v)pr-str a captured value with the data-op print bounds applied, so an
arbitrarily large or lazy/infinite value can't blow up the wire payload or hang
the serializer.
`pr-str` a captured value with the data-op print bounds applied, so an arbitrarily large or lazy/infinite value can't blow up the wire payload or hang the serializer.
(query-tree->data tree)The data counterpart of query-tree->trio: the tree's matched calls as a list
of node->data maps.
The data counterpart of `query-tree->trio`: the tree's matched calls as a list of `node->data` maps.
(query-ws-by-file-line-range file start-line line)Find the tree node that: is smallest or starts latest, contains line and starts at or after start-line.
Find the tree node that: is smallest or starts latest, contains line and starts at or after start-line.
(reply:data msg out)Reply with OUT sent as-is - no clj->nrepl flattening - and end the op. For
the data ops, whose shapes are already built to round-trip over bencode.
Reply with OUT sent as-is - no `clj->nrepl` flattening - and end the op. For the data ops, whose shapes are already built to round-trip over bencode.
(reply:error msg ex)Reply to MSG with a CIDER-renderable error response for EX and end the op.
Mirrors the :err'/:ex' plus :error'/:done' status convention used by
cider-nrepl, so the client surfaces the failure instead of silently getting
no value.
Reply to MSG with a CIDER-renderable error response for EX and end the op. Mirrors the `:err'/`:ex' plus `:error'/`:done' status convention used by cider-nrepl, so the client surfaces the failure instead of silently getting no value.
(run-query query)Parse a printed QUERY form (a string), eval any embedded vars via
magic-recusive-eval, and run it. Returns the result tree.
Parse a printed QUERY form (a string), eval any embedded vars via `magic-recusive-eval`, and run it. Returns the result tree.
(sayid-all-traces {:keys [action] :as msg})Apply trace ACTION (enable/disable/remove) to every trace at once.
Apply trace ACTION (enable/disable/remove) to every trace at once.
(sayid-get-meta-at-point {:keys [transport source file line] :as msg})(sayid-get-workspace-data msg)Return the recorded call tree as data - a list of root call nodes, each a map
whose children are more such nodes - for clients that render it themselves.
The rendered counterpart is sayid-get-workspace; see doc/nrepl-api.md for the
shape.
Return the recorded call tree as data - a list of root call nodes, each a map whose `children` are more such nodes - for clients that render it themselves. The rendered counterpart is `sayid-get-workspace`; see doc/nrepl-api.md for the shape.
(sayid-query-by-fn-data {:keys [fn-name mod] :as msg})Data counterpart of sayid-query-by-fn.
Data counterpart of `sayid-query-by-fn`.
(sayid-query-by-id-data {:keys [trace-id mod] :as msg})Data counterpart of sayid-query-by-id.
Data counterpart of `sayid-query-by-id`.
(sayid-query-data {:keys [query] :as msg})Data counterpart of sayid-query: run QUERY and return the matched calls as
node data. See doc/nrepl-api.md.
Data counterpart of `sayid-query`: run QUERY and return the matched calls as node data. See doc/nrepl-api.md.
(sayid-show-traced-data {:keys [ns] :as msg})Return what Sayid has traced as data - a list of namespace groups, each with
its traced functions - for clients that render it themselves. With a non-empty
NS, restrict to that namespace. The rendered counterpart is sayid-show-traced.
Return what Sayid has traced as data - a list of namespace groups, each with its traced functions - for clients that render it themselves. With a non-empty NS, restrict to that namespace. The rendered counterpart is `sayid-show-traced`.
(sayid-trace-fn {:keys [action fn-name fn-ns] :as msg})Apply trace ACTION to the function named by MSG's fn-ns/fn-name.
Apply trace ACTION to the function named by MSG's fn-ns/fn-name.
(sayid-trace-fn-at-point {:keys [action file line column source] :as msg})Apply trace ACTION to the function whose symbol sits at the cursor position described by MSG (file/line/column/source). Replies with the resolved symbol, or nil when nothing resolves there.
Apply trace ACTION to the function whose symbol sits at the cursor position described by MSG (file/line/column/source). Replies with the resolved symbol, or nil when nothing resolves there.
(sayid-trace-ns {:keys [action ns] :as msg})Apply trace ACTION (enable/disable/remove) to the namespace named by MSG's ns.
Apply trace ACTION (enable/disable/remove) to the namespace named by MSG's ns.
(sayid-trace-ns-by-pattern {:keys [transport ns-pattern ref-ns] :as msg})(throw->data thrown)Trim a captured :throw (a Throwable->map) to the bencode-friendly bits a
client needs: the message, the exception class, and any ex-data. The full
stack trace stays out of the wire shape.
Trim a captured `:throw` (a `Throwable->map`) to the bencode-friendly bits a client needs: the message, the exception class, and any ex-data. The full stack trace stays out of the wire shape.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |