Skip to content

Commit bc8c273

Browse files
committed
Add netcoredbg debugger
1 parent 2e55899 commit bc8c273

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

lua/kickstart/plugins/debug.lua

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,28 @@ return {
7979

8080
-- You can provide additional configuration to the handlers,
8181
-- see mason-nvim-dap README for more information
82-
handlers = {},
83-
82+
handlers = {
83+
function(config)
84+
-- all sources with no handler get passed here
85+
-- Keep original functionality
86+
require('mason-nvim-dap').default_setup(config)
87+
end,
88+
coreclr = function(config)
89+
config.adapters = {
90+
type = 'executable',
91+
command = vim.fn.exepath 'netcoredbg',
92+
args = { '--interpreter=vscode' },
93+
options = {
94+
detached = false,
95+
},
96+
}
97+
require('mason-nvim-dap').default_setup(config)
98+
end,
99+
},
84100
-- You'll need to check that you have the required things installed
85101
-- online, please don't ask me how to install them :)
86102
ensure_installed = {
103+
'coreclr',
87104
-- Update this to ensure that you have the debuggers for the langs you want
88105
},
89106
}

0 commit comments

Comments
 (0)