Skip to content

Commit 7b67475

Browse files
committed
Fix path separators on Windows
- The debug adapters on Windows expect "\\" not "/"
1 parent aa15b9c commit 7b67475

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dap-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,9 @@ FILE-BREAKPOINTS is a list of the breakpoints to set for FILE-NAME."
11981198
(dap--make-request
11991199
"setBreakpoints"
12001200
(list :source (list :name (f-filename file-name)
1201-
:path file-name)
1201+
:path (if (eq system-type 'windows-nt)
1202+
(s-replace "/" "\\" file-name)
1203+
file-name))
12021204
:breakpoints (->> file-breakpoints
12031205
(-map (-lambda ((it &as &plist :condition :hit-condition :log-message))
12041206
(let ((result (->> it dap-breakpoint-get-point line-number-at-pos (list :line))))

0 commit comments

Comments
 (0)