nvim-dap-ui
nvim-dap-ui copied to clipboard
lua: print output into console window instead of REPL window?
Currently when I'm using lua the print() output goes into the REPL window. I don't want that. Instead I want the output to appear in the "DAP console" window.
I have the same issue using the lldb-vscode debugging. any tips on how to set this up?
Set console = "integratedTerminal"
in your DAP configuration, e..g. for python
{
type = "python",
request = "launch",
name = "Launch file",
program = "${file}",
console = "integratedTerminal",
}
unfortunately that does not seem to work for me. I added it as followed, but still get my stdout and stderr output in repl window.
dap.adapters.lldb = {
type = "executable",
command = "lldb-vscode"
}
dap.configurations.c = {
{
name = "runtime",
type = "lldb",
request = "launch",
program = "./runtime",
cwd = "${workspaceFolder}",
console = "integratedTerminal",
}
}
I am experiencing this in Python as well as C. I have never seen stdout in the console element, but it does consistently display in the repl.