Skip to content

Commit 1bd0e30

Browse files
yuhan0bbatsov
authored andcommitted
Respect default *print-length* and *print-level* in debugger output
1 parent b532e59 commit 1bd0e30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cider/nrepl/middleware/debug.clj

+4-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ this map (identified by a key), and will `dissoc` it afterwards."}
182182
(defn pr-short
183183
"Like `pr-str` but limited in length and depth."
184184
[x]
185-
(binding [*print-length* (:length @print-options)
186-
*print-level* (:level @print-options)]
185+
(binding [*print-length* (or (:length @print-options)
186+
*print-length*)
187+
*print-level* (or (:level @print-options)
188+
*print-level*)]
187189
;; TODO: Make it possible to use a random print function here
188190
(pr-str x)))
189191

0 commit comments

Comments
 (0)