Open Mike-18awq opened 3 weeks ago
I'm having trouble seeing command output while debugging in Neovim DAP UI. I've checked my config and tried a few things from the archives, but no luck.
Can anyone help troubleshoot this or suggest a fix?
latest
My config: local dap = require('dap') dap.adapters.codelldb = { type = 'server', port = "${port}", executable = { command = vim.fn.stdpath("data") .. '/mason/bin/codelldb', args = { "--port", "${port}" }, }, } dap.configurations.cpp = { { name = "Launch file", type = "codelldb", request = "launch", program = function() os.execute("clang++ -std=c++20 -glldb -fstandalone-debug " .. vim.fn.expand("%:p") .. " -o " .. vim.fn.expand("%:r")) return vim.fn.expand("%:r") end, cwd = '${workspaceFolder}', stopOnEntry = false, }, } https://github.com/Mike-18awq/dotfiles-Debian/blob/efdd45d29448ac0c2eabcb621de5ecf628546d05/config/nvim/lua/plugins/nvim-dap-ui.lua
Command output as debugging progresses in the DAP UI terminal.
https://github.com/mfussenegger/nvim-dap/assets/137745753/b886609e-771a-485d-a8a8-853139b86584
Debug adapter definition and debug configuration
I'm having trouble seeing command output while debugging in Neovim DAP UI. I've checked my config and tried a few things from the archives, but no luck.
Can anyone help troubleshoot this or suggest a fix?
Debug adapter version
latest
Steps to Reproduce
My config: local dap = require('dap') dap.adapters.codelldb = { type = 'server', port = "${port}", executable = { command = vim.fn.stdpath("data") .. '/mason/bin/codelldb', args = { "--port", "${port}" }, }, } dap.configurations.cpp = { { name = "Launch file", type = "codelldb", request = "launch", program = function() os.execute("clang++ -std=c++20 -glldb -fstandalone-debug " .. vim.fn.expand("%:p") .. " -o " .. vim.fn.expand("%:r")) return vim.fn.expand("%:r") end, cwd = '${workspaceFolder}', stopOnEntry = false, }, } https://github.com/Mike-18awq/dotfiles-Debian/blob/efdd45d29448ac0c2eabcb621de5ecf628546d05/config/nvim/lua/plugins/nvim-dap-ui.lua
Expected Result
Command output as debugging progresses in the DAP UI terminal.
Actual Result
https://github.com/mfussenegger/nvim-dap/assets/137745753/b886609e-771a-485d-a8a8-853139b86584