Function: dape--start-debugging

dape--start-debugging is a natively compiled function defined in dape.el.

Signature

(dape--start-debugging CONN)

Documentation

Preform some cleanup and start debugging with CONN.

Source Code

;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
;;; Startup/Setup

(defun dape--start-debugging (conn)
  "Preform some cleanup and start debugging with CONN."
  (unless (dape--parent conn)
    (dape--stack-frame-cleanup)
    (dape--breakpoints-reset)
    (cl-loop for (_ buffer) on (dape--source-buffers conn)
             by 'cddr
             when (buffer-live-p buffer)
             do (kill-buffer buffer))
    (setf (dape--source-buffers conn) nil)
    (unless dape-active-mode
      (dape-active-mode +1))
    (dape--update-state conn 'starting)
    (run-hooks 'dape-update-ui-hook))
  (dape--initialize conn))