feat: configure c# debugger

This commit is contained in:
Seymur Bagirov 2025-02-24 15:09:56 +04:00
parent f725f8cb87
commit 3f162cefdc

View File

@ -33,18 +33,22 @@ return {
}
}
-- dap.configurations.rust = {
-- {
-- name = "Rust Debug",
-- type = "codelldb",
-- request = "launch",
-- program = function()
-- return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/target/debug", "file")
-- end,
-- cwd = "${workspaceFolder}",
-- stopOnEntry = true,
-- showDisassembly = "never"
-- }
-- }
dap.adapters.coreclr = {
type = "executable",
command = vim.fn.stdpath("data") .. "/mason/bin/netcoredbg",
args = { '--interpreter=vscode' }
}
dap.configurations.cs = {
{
name = "launch - netcoredbg",
type = "coreclr",
request = "launch",
program = function()
return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file')
end
}
}
end
}