File tree 1 file changed +10
-15
lines changed
src/cider/nrepl/middleware
1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -597,22 +597,17 @@ this map (identified by a key), and will `dissoc` it afterwards."}
597
597
598
598
(defmacro breakpoint-if-exception
599
599
" Wrap form in a try-catch that has breakpoint on exception.
600
- Ignores uninteresting forms.
601
- Uninteresting forms are symbols that resolve to `clojure.core`
602
- (taking locals into account), and sexps whose head is present in
603
- `irrelevant-return-value-forms`. Used as :breakfunction in `tag-form`."
600
+ Used as :breakfunction in `tag-form`."
604
601
[form dbg-state original-form]
605
- (if (uninteresting-form? &env form)
606
- form
607
- `(try ~form
608
- (catch Throwable ex#
609
- (let [exn-message# (.getMessage ex#)
610
- break-result# (expand-break exn-message# ~dbg-state ~original-form)]
611
- (if (= exn-message# break-result#)
612
- ; ; if they continued then rethrow the exception
613
- (throw ex#)
614
- ; ; otherwise return the value they injected
615
- break-result#))))))
602
+ `(try ~form
603
+ (catch Throwable ex#
604
+ (let [exn-message# (.getMessage ex#)
605
+ break-result# (expand-break exn-message# ~dbg-state ~original-form)]
606
+ (if (= exn-message# break-result#)
607
+ ; ; if they continued then rethrow the exception
608
+ (throw ex#)
609
+ ; ; otherwise return the value they injected
610
+ break-result#)))))
616
611
617
612
; ;; ## Data readers
618
613
; ;
You can’t perform that action at this time.
0 commit comments