Liking cljdoc? Tell your friends :D

prone.middleware

The Prone middleware can be used to catch exceptions from your app and present them in an interactive explorer UI. Stack traces will by default be filtered to focus on your app's stack frames, and environment data is available for inspection, along with data passed to Prone via prone.debug/debug

The Prone middleware can be used to catch exceptions from your app and
present them in an interactive explorer UI. Stack traces will by default
be filtered to focus on your app's stack frames, and environment data is
available for inspection, along with data passed to Prone via
prone.debug/debug
raw docstring

asset-name->contentsclj

source

asset-name->urlclj

source

asset-url->contentsclj

source

assetsclj

source

create-exception-pageclj

(create-exception-page e {:keys [debug-data request app-namespaces]})
source

debug-responseclj

(debug-response req data)

Ring Response for prone debug data.

Ring Response for prone debug data.
sourceraw docstring

exceptions-responseclj

(exceptions-response req e app-namespaces)

Ring Response for prone exceptions data.

Ring Response for prone exceptions data.
sourceraw docstring

find-application-name-in-project-cljclj

(find-application-name-in-project-clj s)
source

pagesclj

source

render-self-contained-pageclj

(render-self-contained-page data)
source

wrap-exceptionsclj

(wrap-exceptions handler
                 &
                 [{:keys [app-namespaces skip-prone? print-stacktraces?]
                   :or {print-stacktraces? true}
                   :as opts}])

Let Prone handle exeptions instead of Ring. This way, instead of a centered stack trace, errors will give you a nice interactive page where you can browse data, filter the stack trace and generally get a good grip of what is happening.

Optionally, supply a opts map to specify namespaces to include, a predicate function to exclude certain requests from prone, and a boolean value to silence printing of exception stacktraces e.g.:

=> (wrap-exceptions handler {:app-namespaces ['your-ns-1 'my.ns.to-show] :skip-prone? (fn [req] (not-browser? req) :print-stacktraces? false})

Let Prone handle exeptions instead of Ring. This way, instead of a centered
stack trace, errors will give you a nice interactive page where you can browse
data, filter the stack trace and generally get a good grip of what is
happening.

Optionally, supply a opts map to specify namespaces to include,
a predicate function to exclude certain requests from prone, and a boolean
value to silence printing of exception stacktraces e.g.:

=> (wrap-exceptions handler {:app-namespaces ['your-ns-1 'my.ns.to-show]
                             :skip-prone? (fn [req] (not-browser? req)
                             :print-stacktraces? false})
sourceraw docstring

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

× close