Function: dape--next-like-command
dape--next-like-command is a natively compiled function defined in
dape.el.
Signature
(dape--next-like-command CONN COMMAND)
Documentation
Helper for interactive step like commands.
Run step like COMMAND on CONN. If ARG is set run COMMAND ARG times.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--next-like-command (conn command)
"Helper for interactive step like commands.
Run step like COMMAND on CONN. If ARG is set run COMMAND ARG times."
(if (not (dape--stopped-threads conn))
(user-error "No stopped threads")
(dape--with-request-bind
(_body error)
(dape-request conn
command
`(,@(dape--thread-id-object conn)
,@(when (dape--capable-p conn :supportsSteppingGranularity)
(list :granularity
(symbol-name dape-stepping-granularity)))))
(if error
(message "Failed to \"%s\": %s" command 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 nil)))))