With the following configuration, nvim-dap fails to run and exits directly
dap.adapters["bug-stalker"] = {
type = "executable",
command = "bs",
args = { "--dap" }
}
dap.configurations.rust = {
{
name = "Run program",
type = "bug-stalker",
request = "launch",
program = function()
vim.fn.system("cargo build")
return vim.fn.input('Execution file path: ',
vim.fn.getcwd() .. '/target/debug/${workspaceFolderBasename}',
'file')
end,
cwd = "${workspaceFolder}",
}
}
With the following configuration, nvim-dap fails to run and exits directly