diff --git a/modules/home-manager/programs/neovim/polish.lua b/modules/home-manager/programs/neovim/polish.lua index a6ec9cc..6e708ad 100644 --- a/modules/home-manager/programs/neovim/polish.lua +++ b/modules/home-manager/programs/neovim/polish.lua @@ -104,7 +104,7 @@ dap.adapters.cppdbg = { } -- @type DapAdapter -dap.adapters.coreclr = { +dap.adapters.netcoredbg = { type = "executable", command = "netcoredbg", args = { "--interpreter=vscode" }, @@ -162,13 +162,23 @@ dap.configurations.c = dap.configurations.cpp -- @type DapConfiguration dap.configurations.cs = { { - type = "coreclr", - name = "launch - netcoredbg", + type = "netcoredbg", + name = "Launch DLL", request = "launch", program = function() return vim.fn.input("Path to dll", vim.fn.getcwd() .. "/bin/Debug/", "file") end, }, + { + type = "netcoredbg", + name = "Attach to debugger", + request = "attach", + program = function() + return vim.fn.input("Path to dll", vim.fn.getcwd() .. "/bin/Debug/", "file") + end, + pid = "${command:pickProcess}", + cwd = "${workspaceFolder}", + }, } -- @type DapConfiguration