feat(dap): add clangd debuggee launch arguments

This commit is contained in:
genmzy 2023-10-08 17:43:29 +08:00 committed by GitHub
parent 6b837e9165
commit 8b01baef4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,6 +139,14 @@ return {
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
args = function()
local s = vim.fn.input("Args to pass: ")
local t = {}
_ = string.gsub(s, "[^ ]+", function(w)
table.insert(t, w)
end)
return t
end,
},
{
type = "codelldb",