So, I've got to a point where I need a debugger for work,
Console.WriteLine
Console.WriteLine
won't be enough to save my job. I already configured this:
dap.adapters.coreclr = { type = 'executable', command = '/usr/bin/netcoredbg', args = { '--interpreter=vscode' }}dap.configurations.cs = { { type = 'coreclr', name = 'Launch .NET', request = 'launch', program = function() return vim.fn.input('Path to DLL: ', vim.fn.getcwd() .. '/bin/Debug/net9.0/', 'file') end, cwd = '${workspaceFolder}', stopAtEntry = true, runInTerminal = true }}
dap.adapters.coreclr = { type = 'executable', command = '/usr/bin/netcoredbg', args = { '--interpreter=vscode' }}dap.configurations.cs = { { type = 'coreclr', name = 'Launch .NET', request = 'launch', program = function() return vim.fn.input('Path to DLL: ', vim.fn.getcwd() .. '/bin/Debug/net9.0/', 'file') end, cwd = '${workspaceFolder}', stopAtEntry = true, runInTerminal = true }}
It doesn't work even for a hello world program, it ignores all break points and doesn't show the program output on dap-ui. I've already configured a working debugging setup for C and it works just fine, so the program isn't with dap itself.
I'm on a custom Linux system, I downloaded the musl binary for dotnet-sdk/runtime, and I compiled netcoredbg myself from source with all default options, setting just
-DCMAKE_INSTALL_PREFIX=/usr/bin
-DCMAKE_INSTALL_PREFIX=/usr/bin
.
Is there any more info needed? Please I really need help on this thing. It's been days, I've tried everything I could find online.