(js-stack-frame-location {:hyperfiddle.electric.debug3/keys [ns file line
column]})
(js-stack-frame-name {:hyperfiddle.electric.debug3/keys [name ns file]
:as _stack-frame})
(jvm-trace-element-class-name {:hyperfiddle.electric.debug3/keys [name ns
file]})
(jvm-trace-element-file-name {:hyperfiddle.electric.debug3/keys [ns file]})
(keep-relevent-stack-trace-elements stack-trace-elements)
(keep-relevent-stack-trace-elements upto-regex stack-trace-elements)
(locate-stack-frame {:hyperfiddle.electric.debug3/keys [origin type meta]
:as frame})
A random unique ID generated for each Electric runtime instance (browser tab, jvm). Used to identify origin of a transfered value.
A random unique ID generated for each Electric runtime instance (browser tab, jvm). Used to identify origin of a transfered value.
(render-jvm-stack-frame {:hyperfiddle.electric.debug3/keys [name line]
:as stack-frame})
(update-stack-trace! ex f & args)
Like clojure.core/update
but updates an exception's stacktrace. Mutating the exception in place.
f
receives a sequence of java.lang.StackTraceElement
and any provided args
.
f
must return a sequence of java.lang.StackTraceElement
s.
Use case: tidy up (denoise) a stack trace by removing meaningless elements.
Like `clojure.core/update` but updates an exception's stacktrace. Mutating the exception in place. `f` receives a sequence of `java.lang.StackTraceElement` and any provided `args`. `f` must return a sequence of `java.lang.StackTraceElement`s. Use case: tidy up (denoise) a stack trace by removing meaningless elements.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close