@@ -326,7 +326,15 @@ of `cider-interactive-eval' in debug sessions."
326
326
(tool-bar-add-item " exit" #'cider-debug-mode-send-reply :quit :label " Quit" )
327
327
tool-bar-map))
328
328
329
- (defvar cider--debug-mode-map )
329
+ (defvar cider--debug-mode-map
330
+ (let ((map (make-sparse-keymap )))
331
+ ; ; Bind the `:here` command to both h and H, because it behaves differently
332
+ ; ; if invoked with an uppercase letter.
333
+ (define-key map " h" #'cider-debug-move-here )
334
+ (define-key map " H" #'cider-debug-move-here )
335
+ (define-key map " L" #'cider-debug-toggle-locals )
336
+ map)
337
+ " The active keymap during a debugging session." )
330
338
331
339
(define-minor-mode cider--debug-mode
332
340
" Mode active during debug sessions.
@@ -382,11 +390,6 @@ In order to work properly, this mode must be activated by
382
390
(when nrepl-ongoing-sync-request
383
391
(ignore-errors (exit-recursive-edit )))))
384
392
385
- ; ;; Bind the `:here` command to both h and H, because it behaves differently if
386
- ; ;; invoked with an uppercase letter.
387
- (define-key cider--debug-mode-map " h" #'cider-debug-move-here )
388
- (define-key cider--debug-mode-map " H" #'cider-debug-move-here )
389
-
390
393
(defun cider--debug-remove-overlays (&optional buffer )
391
394
" Remove CIDER debug overlays from BUFFER if variable `cider--debug-mode' is nil."
392
395
(when (or (not buffer) (buffer-live-p buffer))
0 commit comments