Function: dape-continue
dape-continue is an interactive and natively compiled function defined
in dape.el.
Signature
(dape-continue CONN)
Documentation
Resumes execution.
CONN is inferred for interactive invocations.
Key Bindings
ctl-x-map C-a c dape-global-map c global-map C-x C-a c help-quick-use-map C-x C-a c
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape-continue (conn)
"Resumes execution.
CONN is inferred for interactive invocations."
(interactive (list (dape--live-connection 'stopped)))
(unless (dape--stopped-threads conn)
(user-error "No stopped threads"))
(let ((body (dape--thread-id-object conn)))
(unless body
(user-error "Unable to derive thread to continued"))
(dape--with-request-bind
((&key (allThreadsContinued t) &allow-other-keys) error)
(dape-request conn :continue body)
(if error
(error "Failed to continue: %s" error)
;; From specification [continued] event:
;; A debug adapter is not expected to send this event in
;; response to a request that implies that execution
;; continues, e.g. launch or continue.
(dape-handle-event
conn 'continued
`(,@body :allThreadsContinued ,allThreadsContinued))))))