Open Rekwass opened 2 days ago
I'm afraid you'll have to report that upstream in the netcoredbg repo.
All the client can do is send the info about the breakpoints to the debug adapter - which according to the log is happening - and then it relies on the debug adapter to handle them, stop if they're hit, and send the corresponding events.
Hi! I found (back in october) that netcoredbg under nvim-dap was sensitive to the :set noshellslash
-option on windows. If the option was set, nvim would report paths with /
rather than \
. It would not match the paths that netcoredbg expected since it does not normalize those in the debugger.
I found this through experimenting, it was not really obvious that the shellslash option would have that effect. Maybe that helps (probably not if you're not on Windows).
Regards
Hello, thank you for you response, I saw this option and did not bother trying as I am on MacOS. I gave it a shot but unfortunately I run into the same issue.
Debug adapter definition and debug configuration
Here is a
minimal.lua
file to reproduce the isssue:Make sure to run
nvim --clean -u minimal.lua
Debug adapter version
3.1.1-1042
Steps to Reproduce
dotnet new console -o testDap -f net8.0
cd
into the new project folderProgram.cs
file and add a couple lines such asDebug
mode (default).dotnet build -c Debug
2
and3
with:DapToggleBreakPoint
TRACE
with:lua require('dap').set_log_level('TRACE')
DapContinue
.dll
file, it should be/path/to/file/testDap/bin/Debug/net8.0/testDap.dll
DapBreakpointRejected
and the session is closed without stopping on any breakpoints.Expected Result
I expect the program to run and stop on the breakpoints that have been set. The debug adapter command works as it is able to find the executable and run it. It is also able to see my breakpoints. I saw on other issues that this is normal "The breakpoint is pending and will be resolved when debugging starts." as they should be evaluated when debugging starts (it is written clearly). I attempted to run the solution manually using
dotnet bin/Debug/net8.0/testDap.dll
without success. I also attempted to add theenv
andcwd
fields but it does not resolve my issue. this solution.Actual Result
The session is closed without stopping on any of the set breakpoints. The log file with
TRACE
log level.