Replies: 1 comment
-
You could use something like this: dap.configurations.swift = {
{
type = "codelldb",
request = "launch",
name = "DEBUG",
program = function()
vim.fn.system("swift build")
return "${workspaceFolder}/.build/debug/" .. vim.fn.substitute(vim.fn.getcwd(), '^.*/', '', '')
end,
cwd = "${workspaceFolder}",
liblldb = libLLDB,
stopOnEntry = false,
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I configured nvim-dap for swift code debugging. However I need to be able to build my swift project each time automatically before I start debugger. (Can do it manually with
swift build
command, but need automatically)How can I add
swift build
command so codelldb will wait until it finished?Here is my setup:
Beta Was this translation helpful? Give feedback.
All reactions