Function: dape-many-windows
dape-many-windows is an interactive and natively compiled function
defined in dape.el.
Signature
(dape-many-windows &optional ARG)
Documentation
Toggle many-buffer debug layout and simple layout.
The mode modifies dape-start-hook to remove or add the complex
layout for future debugging sessions.
This is a global minor mode. If called interactively, toggle the
Dape-Many-Windows mode mode. If the prefix argument is positive,
enable the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=dape-many-windows)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(define-minor-mode dape-many-windows
"Toggle many-buffer debug layout and simple layout.
The mode modifies `dape-start-hook' to remove or add the complex
layout for future debugging sessions."
:global t
:init-value t
(if dape-many-windows
(add-hook 'dape-start-hook #'dape-info)
(remove-hook 'dape-start-hook #'dape-info)
(dolist (buffer (dape--info-buffer-list))
(when-let* ((window (get-buffer-window buffer)))
(quit-window t window))))
(when dape-active-mode
(when dape-many-windows
(dape-info nil))
(when-let* ((conn (dape--live-connection 'parent t))
(buffer (dape--shell-buffer conn)))
(dape--display-buffer buffer))
(when-let* ((window (get-buffer-window "*dape-repl*")))
(quit-window nil window))
(dape-repl)))