     (unless dont-restore
       ;; Switch to the saved state,
       (cond
-       ((eq state 'debugger)
+       ((not (eq state 'original))
         (if rdebug-debugger-window-configuration
             (set-window-configuration rdebug-debugger-window-configuration)))
        ((eq state 'original)



(defun rdebug--setup-secondary-window-help-buffer (buf comint-buffer)
  (rdebug-debug-enter "rdebug--setup-secondary-window-help-bufferr"
    (with-current-buffer buf
      (rdebug-secondary-window-help-mode)
      (set (make-local-variable 'gud-comint-buffer) comint-buffer)

 V - Variables buffer
 W - Watch buffer

 SPC - step (into)
 +   - step+
 c   - continue
 f   - finish (step out)
 n   - next (step over)
 p   - print
 q   - quit
 r   - run
 s   - step (into)

 > - go down frame (with numeric argument goes down that many frames)
 < - go up one frame (with numeric argument goes down that many frames)

 ? - This help text.
"))))
