Function: dape-pause

dape-pause is an interactive and natively compiled function defined in dape.el.

Signature

(dape-pause CONN)

Documentation

Pause execution.

CONN is inferred for interactive invocations.

Key Bindings

ctl-x-map C-a p dape-global-map p global-map C-x C-a p help-quick-use-map C-x C-a p

Source Code

;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape-pause (conn)
  "Pause execution.
CONN is inferred for interactive invocations."
  (interactive (list (or (dape--live-connection 'running t)
                         (dape--live-connection 'parent))))
  (when (dape--stopped-threads conn)
    ;; cpptools crashes on pausing an paused thread
    (user-error "Thread is stopped"))
  (dape--with-request-bind
      (_body error)
      (dape-request conn :pause (or (dape--thread-id-object conn)
                                    '(:threadId 0)))
    (when error
      (error "Failed to pause: %s" error))))