From 3f162cefdc150dc6addf90a108dae88266dc01ca Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Mon, 24 Feb 2025 15:09:56 +0400 Subject: [PATCH] feat: configure c# debugger --- nvim/lua/themystery/plugins/dap.lua | 30 ++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/nvim/lua/themystery/plugins/dap.lua b/nvim/lua/themystery/plugins/dap.lua index f6487a5..06a80fb 100644 --- a/nvim/lua/themystery/plugins/dap.lua +++ b/nvim/lua/themystery/plugins/dap.lua @@ -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 }