@@ -175,15 +175,15 @@ input requests. `read-debug-input` will halt until it finds its input in
175175this map (identified by a key), and will `dissoc` it afterwards." }
176176 promises (atom {}))
177177
178- (defonce print-length (atom nil ))
179- (defonce print-level (atom nil ))
178+ (defonce print-options (atom nil ))
180179(defonce step-in-to-next? (atom false ))
181180
182181(defn pr-short
183182 " Like `pr-str` but limited in length and depth."
184183 [x]
185- (binding [*print-length* @print-length
186- *print-level* @print-level]
184+ (binding [*print-length* (:length @print-options)
185+ *print-level* (:level @print-options)]
186+ ; ; TODO: Make it possible to use a random print function here
187187 (pr-str x)))
188188
189189(defn- locals-for-message
@@ -620,12 +620,11 @@ this map (identified by a key), and will `dissoc` it afterwards."}
620620
621621(defn- initialize
622622 " Initialize the channel used for debug-input requests."
623- [{:keys [print-length print-level ] :as msg}]
623+ [{:keys [print-options ] :as msg}]
624624 (when (map? @debugger-message)
625625 (debugger-send :status :done ))
626626 ; ; The above is just bureaucracy. The below is important.
627- (reset! @#'print-length print-length)
628- (reset! @#'print-level print-level)
627+ (reset! @#'print-options print-options)
629628 (reset! debugger-message msg))
630629
631630(defn- instrumented-defs-reply
0 commit comments