Skip to content

Commit

Permalink
Fix goto module with remote debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante committed Mar 2, 2024
1 parent 73249cd commit 30052d8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -3381,9 +3381,13 @@ current buffer with CONN config."

(dape--command-at-line dape-info-modules-goto (dape--info-module)
"Goto source."
(if-let ((path (plist-get dape--info-module :path)))
(pop-to-buffer (find-file-noselect path))
(user-error "No path associated with module")))
(let ((conn (dape--live-connection 'last t))
(source (list :source dape--info-module)))
(dape--with-request (dape--source-ensure conn source)
(if-let ((marker
(dape--object-to-marker conn source)))
(pop-to-buffer (marker-buffer marker))
(user-error "Unable to open module")))))

(dape--buffer-map dape-info-module-line-map dape-info-modules-goto)

Expand Down

0 comments on commit 30052d8

Please sign in to comment.