-
My config: dap.adapters.codelldb = {
type = 'server',
port = "${port}",
executable = {
command = vim.fn.stdpath('data') .. '/mason/packages/codelldb/codelldb',
args = {"--port", "${port}"},
-- On windows you may have to uncomment this:
-- detached = false,
}
}
dap.configurations.cpp = {
{
name = "Launch file (lldb)",
type = "codelldb",
request = "launch",
-- required fields.
cwd = '${workspaceFolder}',
stopOnEntry = false,
-- setupCommands = {
-- {
-- text = '-enable-pretty-printing',
-- description = 'enable pretty printing',
-- ignoreFailures = false
-- },
-- },
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
},
}
What do those |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
lol I'm stupid I didn't even know that I should "compile with debug symbols". I just saw your kindly comment somewhere and it works:
Regarding my second question about the meaning of
|
Beta Was this translation helpful? Give feedback.
lol I'm stupid I didn't even know that I should "compile with debug symbols". I just saw your kindly comment somewhere and it works:
Regarding my second question about the meaning of
R
was explained there: