Description
When a DAP (debug adapter protocol) client sends a setBreakpoints request with a path that contains forward slashes the breakpoint is not set.
The server also (wrongfully?) reports back that the command was executed successfully.
Observed behavior
The code runs without halting at the breakpoint.
Expected behavior
The program should halt at the breakpoint and send a breakpoint event to the DAP client.
Suggestion
I think the "offending" code is here
This line behaves differently depending if forward or backward slashes have been used.
Maybe replace all forward slashes with backward slashes if we are on windows.
Could be implemented before/after the drive letter fix.
System
Windows 10
DAP Client: emacs with lsp-mode/dap-mode
DAP Server: jdtls (Eclipse language server)
Description When a DAP (debug adapter protocol) client sends a
setBreakpoints
request with a path that contains forward slashes the breakpoint is not set. The server also (wrongfully?) reports back that the command was executed successfully.Observed behavior The code runs without halting at the breakpoint.
Expected behavior The program should halt at the breakpoint and send a
breakpoint
event to the DAP client.Logging with forward slashes (Not working)
Logging with backward slashes (Working)
Suggestion I think the "offending" code is here This line behaves differently depending if forward or backward slashes have been used. Maybe replace all forward slashes with backward slashes if we are on windows. Could be implemented before/after the drive letter fix.
System Windows 10 DAP Client: emacs with lsp-mode/dap-mode DAP Server: jdtls (Eclipse language server)