Added c# debugger

This commit is contained in:
EsVagy42 2025-09-09 19:25:51 +02:00
parent 3019a71877
commit 131d92e587

View file

@ -3,27 +3,43 @@
dap = {
enable = true;
luaConfig.post = ''
local dap = require('dap')
dap.adapters.lldb = {
type = 'executable',
command = '/run/current-system/sw/bin/lldb-dap', -- adjust as needed, must be absolute path
name = 'lldb'
}
dap.configurations.cpp = {
{
name = 'Launch',
type = 'lldb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = "''${workspaceFolder}",
stopOnEntry = true,
args = {},
local dap = require('dap')
dap.adapters.lldb = {
type = 'executable',
command = '/run/current-system/sw/bin/lldb-dap', -- adjust as needed, must be absolute path
name = 'lldb'
}
dap.configurations.cpp = {
{
name = 'Launch',
type = 'lldb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = "''${workspaceFolder}",
stopOnEntry = true,
args = {},
runInTerminal = true,
},
},
}
dap.adapters.coreclr = {
type = 'executable',
command = '/run/current-system/sw/bin/netcoredbg',
args = {'--interpreter=vscode'},
name = 'netcoreclr'
}
'';
dap.configurations.cs = {
{
type = "coreclr",
name = "launch - netcoredbg",
request = "launch",
program = function()
return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file')
end,
},
} '';
};
};
}