add args to debug run of code
This commit is contained in:
@@ -400,6 +400,7 @@ require'lazy'.setup{ --{{{1
|
|||||||
command = vim.fn.exepath('lldb-dap'),
|
command = vim.fn.exepath('lldb-dap'),
|
||||||
name = 'lldb'
|
name = 'lldb'
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.configurations.c = {
|
dap.configurations.c = {
|
||||||
{
|
{
|
||||||
name = 'Launch',
|
name = 'Launch',
|
||||||
@@ -410,7 +411,10 @@ require'lazy'.setup{ --{{{1
|
|||||||
end,
|
end,
|
||||||
cwd = '${workspaceFolder}',
|
cwd = '${workspaceFolder}',
|
||||||
stopOnEntry = false,
|
stopOnEntry = false,
|
||||||
args = {},
|
args = function()
|
||||||
|
local i = vim.fn.input('input args: ')
|
||||||
|
return vim.fn.split(i)
|
||||||
|
end,
|
||||||
runInTerminal = true,
|
runInTerminal = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user