Liking cljdoc? Tell your friends :D

flow-storm.api

clj

This is the only namespace intended for users. Provides functionality to connect to the debugger and instrument forms.

This is the only namespace intended for users.
Provides functionality to connect to the debugger and instrument forms.
raw docstring

cli-runclj

(cli-run {:keys [instrument-ns excluding-ns require-before fn-symb fn-args
                 profile verbose? styles host port]
          :as opts})

Require fn-symb ns, instrument ns-set (excluding excluding-ns) and then call (apply fn-symb fn-args).

profile (optional) should be :full (for full instrumentation) or :light for disable #{:expr :binding :anonymous-fn}

require-before (optional) should be a set of namespaces you want to require before the instrumentation.

verbose? (optional) when true show more logging.

styles (optional) a file path containing styles (css) that will override default styles

host (optional) when a host is given traces are going to be send to a remote debugger

port (optional) when a port is given traces are going to be send to a remote debugger

cli-run is designed to be used with clj -X like :

clj -X:dbg:inst:dev:build flow-storm.api/cli-run :instrument-set '#{"hf.depstar"}' :fn-symb 'hf.depstar/jar' :fn-args '[{:jar "flow-storm-dbg.jar" :aliases [:dbg] :paths-only false :sync-pom true :version "1.1.1" :group-id "com.github.jpmonettas" :artifact-id "flow-storm-dbg"}]'

if you want to package flow-storm-dbg with depstar traced.

Require `fn-symb` ns, instrument `ns-set` (excluding `excluding-ns`) and then call (apply `fn-symb` `fn-args`).

`profile` (optional) should be :full (for full instrumentation) or :light for disable #{:expr :binding :anonymous-fn}

`require-before` (optional) should be a set of namespaces you want to require before the instrumentation.

`verbose?` (optional) when true show more logging.

`styles` (optional) a file path containing styles (css) that will override default styles

`host` (optional) when a host is given traces are going to be send to a remote debugger

`port` (optional) when a port is given traces are going to be send to a remote debugger

cli-run is designed to be used with clj -X like :

clj -X:dbg:inst:dev:build flow-storm.api/cli-run :instrument-set '#{"hf.depstar"}' :fn-symb 'hf.depstar/jar' :fn-args '[{:jar "flow-storm-dbg.jar" :aliases [:dbg] :paths-only false :sync-pom true :version "1.1.1" :group-id "com.github.jpmonettas" :artifact-id "flow-storm-dbg"}]'

if you want to package flow-storm-dbg with depstar traced.
raw docstring

close-remote-connectionclj/s

(close-remote-connection)

debugger-events-processor-nsclj


debugger-main-nsclj


debugger-trace-processor-nsclj


instrument*clj/smacro

(instrument* config form)

instrument-forms-for-namespacesclj

(instrument-forms-for-namespaces prefixes)
(instrument-forms-for-namespaces prefixes opts)

Instrument all forms, in all namespaces that matches prefixes.

(instrument-forms-for-namespaces prefixes opts)

prefixes is a set of ns prefixes like #{"cljs.compiler" "cljs.analyzer"}

opts is a map containing : - :excluding-ns a set of strings with namespaces that should be excluded - :disable is a set containing any of #{:expr :binding :anonymous-fn} useful for disabling unnecesary traces in code that generate too many traces

Instrument all forms, in all namespaces that matches `prefixes`.

(instrument-forms-for-namespaces prefixes opts)

`prefixes` is a set of ns prefixes like #{"cljs.compiler" "cljs.analyzer"}

`opts` is a map containing :
     - :excluding-ns  a set of strings with namespaces that should be excluded
     - :disable is a set containing any of #{:expr :binding :anonymous-fn}
                useful for disabling unnecesary traces in code that generate too many traces
raw docstring

instrument-varclj

(instrument-var var-symb)
(instrument-var var-symb config)

Instruments any var.

(instrument-var var-symb opts)

Lets say you are interested in debugging clojure.core/interpose you can do :

(instrument-var clojure.core/interpose {})

#rtrace (interpose :a [1 2 3])

Be careful instrumenting clojure.core functions or any functions that are being used by repl system code since can be called constantly and generate a lot of noise.

Use uninstrument-var to remove instrumentation.

opts is a map that support :flow-id and :disable See instrument-forms-for-namespaces for :disable

Instruments any var.

(instrument-var var-symb opts)

Lets say you are interested in debugging clojure.core/interpose you can do :

(instrument-var clojure.core/interpose {})

#rtrace (interpose :a [1 2 3])

Be careful instrumenting clojure.core functions or any functions that are being used
by repl system code since can be called constantly and generate a lot of noise.

Use `uninstrument-var` to remove instrumentation.

`opts` is a map that support :flow-id and :disable
See `instrument-forms-for-namespaces` for :disable
raw docstring

local-connectclj

(local-connect)
(local-connect config)

Start a debugger under this same JVM process and connect to it.

This is the recommended way of using the debugger for debugging code that generates a lot of data since data doesn't need to serialize/deserialize it like in a remote debugging session case.

config should be a map containing: :verbose?

Start a debugger under this same JVM process and connect to it.

This is the recommended way of using the debugger for debugging code that
generates a lot of data since data doesn't need to serialize/deserialize it like
in a remote debugging session case.

`config` should be a map containing: `:verbose?`
raw docstring

read-ctrace-tagclj

(read-ctrace-tag form)

read-rtrace-tagclj

(read-rtrace-tag form)

read-rtrace0-tagclj

(read-rtrace0-tag form)

read-rtrace1-tagclj

(read-rtrace1-tag form)

read-rtrace2-tagclj

(read-rtrace2-tag form)

read-rtrace3-tagclj

(read-rtrace3-tag form)

read-rtrace4-tagclj

(read-rtrace4-tag form)

read-rtrace5-tagclj

(read-rtrace5-tag form)

read-trace-tagclj

(read-trace-tag form)

remote-connectclj/s

(remote-connect)
(remote-connect
  {:keys [host port on-connected] :or {host "localhost" port 7722} :as config})

Connect to a remote debugger. Without arguments connects to localhost:7722.

config is a map with :host, :port

Connect to a remote debugger.
Without arguments connects to localhost:7722.

`config` is a map with `:host`, `:port`
raw docstring

remote-connected?clj

(remote-connected?)

remote-websocket-clientclj/s


runiclj/smacro

(runi opts form)

Run instrumented.

(runi opts form)

Instrument form and run it for tracing.

Same as doing #rtrace form.

opts is a map that support the same keys as instrument-var.

Run instrumented.

(runi opts form)

Instrument form and run it for tracing.

Same as doing #rtrace `form`.

`opts` is a map that support the same keys as `instrument-var`. 
raw docstring

send-event-to-debuggerclj

(send-event-to-debugger ev)

uninstrument-forms-for-namespacesclj

(uninstrument-forms-for-namespaces prefixes)

Undo instrumentation made by flow-storm.api/instrument-forms-for-namespaces

Undo instrumentation made by `flow-storm.api/instrument-forms-for-namespaces`
raw docstring

uninstrument-varclj

(uninstrument-var var-symb)

Remove instrumentation given a var symbol.

(uninstrument-var var-symb)

Remove instrumentation given a var symbol.

(uninstrument-var var-symb)
raw docstring

web-socket-client-objectcljs

(web-socket-client-object uri-str)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close