None
EN
Comment on neovim, dap and gdb 14.1 by Andreas Schneider
['Andreas Schneider']
Comments for Andreas Schneider
I load DAP with lazy only for filetypes I use it for. local ok, dap = pcall(require, 'dap') if not ok then return end -- -- See -- https://sourceware.org/gdb/current/onlinedocs/gdb.html/Interpreters.html -- https://sourceware.org/gdb/current/onlinedocs/gdb.html/Debugger-Adapter-Protocol.html dap.adapters.gdb = { id = 'gdb', type = 'executable', command = 'gdb', args = { '--quiet', '--interpreter=dap' }, } dap.configurations.c = { { name = 'Run executable (GDB)', type = 'gdb', request = 'launch', -- This requires special handling of 'run_last', see -- https://github.com/mfussenegger/nvim-dap/issues/1025#issuecomment-1695852355 program = function() local path = vim.fn.input({ prompt = 'Path to executable: ', default = vim.fn.getcwd() ..