feat(neovim): update dap config

This commit is contained in:
Felix Schröter 2021-09-01 12:52:34 +02:00
parent 6127d31e46
commit a076bdb5bc
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
5 changed files with 39 additions and 12 deletions

View file

@ -0,0 +1,26 @@
local dap = require("dap")
local function pwd() return io.popen("pwd"):lines()() end
dap.adapters.netcoredbg = {
type = "executable",
command = "netcoredbg",
args = {
"--interpreter=vscode",
string.format("--engineLogging=%s/netcoredbg.engine.log", XDG_CACHE_HOME),
string.format("--log=%s/netcoredbg.log", XDG_CACHE_HOME),
},
}
dap.configurations.cs = {
{
type = "netcoredbg",
name = "launch - netcoredbg",
request = "launch",
program = function()
local dll = io.popen("find bin/Debug/ -maxdepth 2 -name \"*.dll\"")
return pwd() .. "/" .. dll:lines()()
end,
stopAtEntry = true,
},
}