C
C#2w ago
elisoli

Setting up netcoredbg for NeoVim

I've been trying to setup a debugger for C# on my NeoVim but what I've done so far has not show any effect. I've already successfully setup debugging for C on this machine in the same exact way so I wonder why it is not working. This is my system: amd64 custom linux kernel musl libc What I've done so far:
local dap = require 'dap'

local netcoredbg_adapter = {
type = 'executable',
command = '/usr/bin/netcoredbg',
args = { '--interpreter=vscode' }
}

dap.adapters.coreclr = netcoredbg_adapter
dap.adapters.netcoredbg = netcoredbg_adapter

dap.configurations.cs = {
{
type = 'coreclr',
name = 'Launch .NET',
request = 'launch',
cwd = '${workspaceFolder}',
stopAtEntry = true,

program = function()
return vim.fn.input('Path to DLL: ', vim.fn.getcwd() .. '/bin/Debug/', 'file')
end,
}
}
local dap = require 'dap'

local netcoredbg_adapter = {
type = 'executable',
command = '/usr/bin/netcoredbg',
args = { '--interpreter=vscode' }
}

dap.adapters.coreclr = netcoredbg_adapter
dap.adapters.netcoredbg = netcoredbg_adapter

dap.configurations.cs = {
{
type = 'coreclr',
name = 'Launch .NET',
request = 'launch',
cwd = '${workspaceFolder}',
stopAtEntry = true,

program = function()
return vim.fn.input('Path to DLL: ', vim.fn.getcwd() .. '/bin/Debug/', 'file')
end,
}
}
The problem is that when I run dap it just runs and does not stop on the breakpoints (shown in the picture). Dap logs: https://0x0.st/KAOT.txt
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?