Skip to content

Commit

Permalink
Fix stack selection on adapters that support delayed fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante committed Dec 10, 2024
1 parent 6052196 commit 28a61c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -2593,6 +2593,10 @@ When SKIP-UPDATE is non nil, does not notify adapter about removal."
(defun dape-stack-select-up (conn n)
"Select N stacks above current selected stack for adapter CONN."
(interactive (list (dape--live-connection 'stopped) 1))
;; Ensure all threads. See `dape--stack-trace'.
(let ((dape--request-blocking t))
(dape--with-request
(dape--stack-trace conn (dape--current-thread conn) dape-stack-trace-levels)))
(if (dape--stopped-threads conn)
(let* ((current-stack (dape--current-stack-frame conn))
(stacks (plist-get (dape--current-thread conn) :stackFrames))
Expand Down

0 comments on commit 28a61c0

Please sign in to comment.