C
C#5mo ago
elisoli

NeoVim Debugger

So, I've got to a point where I need a debugger for work, 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. 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.
7 Replies
Jimmacle
Jimmacle5mo ago
unfortunately the efficient answer is probably: if your work depends on it, maybe a custom linux system and neovim isn't a good choice stability and ease of use over fun in cases like that
elisoli
elisoliOP5mo ago
so the simple answer is Samsung sucks?
leowest
leowest5mo ago
the simple answer is people trying to do unorthodox things really
Lex Li
Lex Li5mo ago
That's an unfair comment on the Samsung debugger. I did work to integrate it with MonoDevelop https://docs.lextudio.com/blog/samsung-net-core-debugger-and-monodevelop-80a6ea4bcab3 and VS Code, but I never use a custom Linux system nor NeoVim. You chose that path and you have to dig into the details very much yourself.
elisoli
elisoliOP5mo ago
That is not a big deal, it's just a custom distro, it works just like any other it has everything others have it's funny and very unpleasant how a big tech company can create a software and not give full support to a system that they "give support" im literally just running linux
Lex Li
Lex Li5mo ago
So, sponsoring the development and sharing the source code isn't a big contribution to the community? Commercial technical support (which might cost hundreds of USD a hour) isn't free meal. If you help yourself with Linux by studying without paying for support, you should help yourself with other open source products in a similar way.
elisoli
elisoliOP5mo ago
technical support? who said that? I said supporting linux systems whatever, i just couldn't find a way to run this on linux my linux isn't nothing special it might just be a misconfiguration im not here to fight about what distro is what or whatever, just to look for some suggestions on how to get this to work

Did you find this page helpful?