-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netcoredbg: path value for setBreakpoints request on Windows #1073
Comments
I used |
The wiki is editable by anyone. Could you make these changes? |
Sure, I didn't realize I can do that myself. Added a troubleshooting step of sorts. It works great now. |
Problem Statement
Hi!
I have been having some issues when configuring the Samsung netcoredbg through this plugin (master branch, hash 79dbc70) with Nvim 0.9.2. I found issue #939 which appears to be the same issue, however that one is closed.
The issue is quite simple, after setting up nvim-dapui and nvim-dap, starting a debug-session and placing a breakpoint, it is immediately rejected as soon as the debug session is started, or immediately if the debugsession is already active.
I enabled tracing and inspected the pdb file from my dotnet 6.0 application bin-directory in HxD and found that all file references were including filenames only, not full filenames joined with a path. I was struggling with this for quite a while but decided to see what happens if the setBreakpoints payload.source.path used different case, or formatting to match this better.
Eventually I came up with a workaround where my breakpoints were finally successfully placed & hit; I changed the
lua/dap/session.lua
file around line 862 to read asrather than the original
which of course this is only just a hack and not an ideal solution to my problem since I and many others use other debuggers with nvim (thanks to this project which I find to be really great) and simply changing the protocol implementation at session.lua will not work - every other dap configuration would obviously break from this.
Possible Solutions
Might it be possible to add a configuration option in nvim-dap to handle this case somehow? My csproj file is quite usual as far as C# project setups go. Not sure if the issue lies with the netcoredbg dap implementation or the .Net Core CLI compiler invocation settings.
Considered Alternatives
I am looking for a reasonable means of configuring this - I realize it might be better to figure out why the breakpoint path is not matching with what appears to be the default .Net core project settings.
Appreciate any feedback & suggestions or dap protocol monkey patch options in this project. I saw a different ticket where a similar suggestion was raised but considered not really desired.
The text was updated successfully, but these errors were encountered: