You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run this command in the terminal it connects to dlv ~/.local/share/KickstartNvim/mason/bin/dlv debug hello.go
But inside Neovim I get this error: Error on launch: Failed to launch: could not launch process: stub exited while waiting for connection: exit status 0
It seems like it cannot connect to dlv but I am unsure how to get more information or try to have it connect differently.
Config:
{
'mfussenegger/nvim-dap',
dependencies= {
'rcarriga/nvim-dap-ui',
'nvim-neotest/nvim-nio',
'williamboman/mason.nvim',
'jay-babu/mason-nvim-dap.nvim',
'leoluz/nvim-dap-go',
},
keys=function(_, keys)
localdap=require'dap'localdapui=require'dapui'return {
{ '<leader>dc', dap.continue, desc='Debug: Start/Continue' },
{ '<F1>', dap.step_into, desc='Debug: Step Into' },
{ '<F2>', dap.step_over, desc='Debug: Step Over' },
{ '<F3>', dap.step_out, desc='Debug: Step Out' },
{ '<leader>b', dap.toggle_breakpoint, desc='Debug: Toggle Breakpoint' },
{
'<leader>B',
function()
dap.set_breakpoint(vim.fn.input'Breakpoint condition: ')
end,
desc='Debug: Set Breakpoint',
},
{ '<leader>do', dapui.toggle, desc='Debug: See last session result.' },
unpack(keys),
}
end,
config=function()
localdap=require'dap'localdapui=require'dapui'require('mason-nvim-dap').setup {
automatic_installation=true,
handlers= {},
ensure_installed= {
'delve',
},
}
dapui.setup {
-- Set icons to characters that are more likely to work in every terminal.-- Feel free to remove or use ones that you like more! :)-- Don't feel like these are good choices.icons= { expanded='▾', collapsed='▸', current_frame='*' },
controls= {
icons= {
pause='⏸',
play='▶',
step_into='⏎',
step_over='⏭',
step_out='⏮',
step_back='b',
run_last='▶▶',
terminate='⏹',
disconnect='⏏',
},
},
}
dap.listeners.after.event_initialized['dapui_config'] =dapui.opendap.listeners.before.event_terminated['dapui_config'] =dapui.closedap.listeners.before.event_exited['dapui_config'] =dapui.closerequire('dap-go').setup {
delve= {
detached=vim.fn.has'win32' ==0,
},
}
end,
}
Cmd: :lua require('dap-go').debug_test()
The text was updated successfully, but these errors were encountered:
If I run this command in the terminal it connects to dlv
~/.local/share/KickstartNvim/mason/bin/dlv debug hello.go
But inside Neovim I get this error:
Error on launch: Failed to launch: could not launch process: stub exited while waiting for connection: exit status 0
It seems like it cannot connect to dlv but I am unsure how to get more information or try to have it connect differently.
Config:
Cmd:
:lua require('dap-go').debug_test()
The text was updated successfully, but these errors were encountered: