The nREPL wire protocol. wrap-sayid registers Sayid's nREPL ops - trace
management, queries, and the data ops that hand the recorded call tree to editor
clients as plain data (see doc/nrepl-api.md) - by collecting the ^:nrepl-tagged
vars in this namespace.
The nREPL wire protocol. `wrap-sayid` registers Sayid's nREPL ops - trace management, queries, and the data ops that hand the recorded call tree to editor clients as plain data (see doc/nrepl-api.md) - by collecting the `^:nrepl`-tagged vars in this namespace.
*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.
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.
(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.
(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})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 |