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
(debug-response req data)
Ring Response for prone debug data.
Ring Response for prone debug data.
(exceptions-response req e app-namespaces)
Ring Response for prone exceptions data.
Ring Response for prone exceptions data.
(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})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close