© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•7mo ago•
15 replies
elisoli

NeoVim Debugger

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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Neovim Config
C#CC# / help
3mo ago
C# with Neovim
C#CC# / help
2y ago
❔ DEBUGGER ATTRIBUTE .NET
C#CC# / help
3y ago
❔ Blazor with neovim distributions
C#CC# / help
3y ago