feat(neovim): update dap config
This commit is contained in:
parent
6127d31e46
commit
a076bdb5bc
5 changed files with 39 additions and 12 deletions
26
home/editors/neovim/dap/dap.lua
Normal file
26
home/editors/neovim/dap/dap.lua
Normal 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,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue