Skip to content

Commit

Permalink
Fix path separators on Windows
Browse files Browse the repository at this point in the history
- The debug adapters on Windows expect "\\" not "/"
  • Loading branch information
yyoncho committed Mar 5, 2021
1 parent aa15b9c commit 7b67475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dap-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,9 @@ FILE-BREAKPOINTS is a list of the breakpoints to set for FILE-NAME."
(dap--make-request
"setBreakpoints"
(list :source (list :name (f-filename file-name)
:path file-name)
:path (if (eq system-type 'windows-nt)
(s-replace "/" "\\" file-name)
file-name))
:breakpoints (->> file-breakpoints
(-map (-lambda ((it &as &plist :condition :hit-condition :log-message))
(let ((result (->> it dap-breakpoint-get-point line-number-at-pos (list :line))))
Expand Down

0 comments on commit 7b67475

Please sign in to comment.