@@ -175,15 +175,15 @@ input requests. `read-debug-input` will halt until it finds its input in
175
175
this map (identified by a key), and will `dissoc` it afterwards." }
176
176
promises (atom {}))
177
177
178
- (defonce print-length (atom nil ))
179
- (defonce print-level (atom nil ))
178
+ (defonce print-options (atom nil ))
180
179
(defonce step-in-to-next? (atom false ))
181
180
182
181
(defn pr-short
183
182
" Like `pr-str` but limited in length and depth."
184
183
[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
187
187
(pr-str x)))
188
188
189
189
(defn- locals-for-message
@@ -620,12 +620,11 @@ this map (identified by a key), and will `dissoc` it afterwards."}
620
620
621
621
(defn- initialize
622
622
" Initialize the channel used for debug-input requests."
623
- [{:keys [print-length print-level ] :as msg}]
623
+ [{:keys [print-options ] :as msg}]
624
624
(when (map? @debugger-message)
625
625
(debugger-send :status :done ))
626
626
; ; 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)
629
628
(reset! debugger-message msg))
630
629
631
630
(defn- instrumented-defs-reply
0 commit comments