Replies: 1 comment 2 replies
-
|
The integrated terminal uses a regular buffer/window. You can get it back by switching buffers. E.g. via The |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hello,
When using dap continue the first time with lldb, an integrated terminal opens showing the program output. However, if I close it and relaunch a debug session, it does not open again.
I did not found any api command to open it, nor options to not open it at all (which I don't want, but it would have been nice to have more control over it). I didn't found any related discussion, does someone knows this issue and a fix for it ? I saw that dap ui handles it well but I don't like it's UI and I have trouble understanding it's code.
Thank you in advance!
Here's my config:
local dap = require('dap')
local dap_text = require("nvim-dap-virtual-text")
dap.adapters.codelldb = {
id = "codelldb",
type = 'server',
port = '${port}',
executable = {
command = vim.fn.exepath('codelldb'),
args = { '--port', '${port}' },
},
}
dap.configurations.cpp = {
{
name = "Debug using codelldb",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
console = "integratedTerminal",
args = {},
},
}
dap.defaults.fallback.terminal_win_cmd = '50vsplit new'
dap_text.setup();
vim.keymap.set("n", "db", dap.toggle_breakpoint);
vim.keymap.set("n", "dr", dap.continue);
vim.keymap.set("n", "dp", dap.pause);
vim.keymap.set("n", "do", dap.repl.open);
vim.keymap.set("n", "dd", dap.clear_breakpoints);
vim.keymap.set("n", "dt", dap.terminate);
vim.keymap.set("n", "", dap.step_into);
vim.keymap.set("n", "", dap.step_over);
vim.keymap.set("n", "", dap.step_out);
Beta Was this translation helpful? Give feedback.
All reactions