add gdb as adapter
This commit is contained in:
parent
9f17fe4ffe
commit
796d4550f1
|
@ -734,6 +734,12 @@ local plugins = {
|
|||
end,
|
||||
config = function()
|
||||
local dap = require "dap"
|
||||
dap.adapters.gdb = {
|
||||
type = "executable",
|
||||
command = "gdb",
|
||||
args = { "-i", "dap" },
|
||||
}
|
||||
|
||||
dap.configurations.c = {
|
||||
{
|
||||
name = "Launch",
|
||||
|
@ -745,6 +751,8 @@ local plugins = {
|
|||
cwd = "${workspaceFolder}",
|
||||
},
|
||||
}
|
||||
dap.configurations.rust = dap.configurations.c
|
||||
dap.configurations.cpp = dap.configurations.c
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue