add cpp config and fix adapter
This commit is contained in:
parent
ebd55ecc55
commit
59d9b95eb9
@ -87,14 +87,26 @@ dap.adapters.codelldb = {
|
|||||||
port = "${port}",
|
port = "${port}",
|
||||||
executable = {
|
executable = {
|
||||||
-- CHANGE THIS to your path!
|
-- CHANGE THIS to your path!
|
||||||
command = '/absolute/path/to/codelldb/extension/adapter/codelldb',
|
command = masonpath .. '/bin/codelldb.cmd',
|
||||||
args = { '--port', '${port}' },
|
args = { '--port', '${port}' },
|
||||||
|
|
||||||
-- On windows you may have to uncomment this:
|
-- On windows you may have to uncomment this:
|
||||||
-- detached = false,
|
detached = false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dap.configurations.cpp = {
|
||||||
|
{
|
||||||
|
name = "Launch file",
|
||||||
|
type = "codelldb",
|
||||||
|
request = "launch",
|
||||||
|
program = function()
|
||||||
|
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||||
|
end,
|
||||||
|
cwd = '${workspaceFolder}',
|
||||||
|
stopOnEntry = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
-- EXTENSIONS
|
-- EXTENSIONS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user