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
{{ message }}
Repository navigation
[Feature Request] Is it possible to use this in vim/neovim with nvim-dap #386
I'm not a Neovim user, but I did take a look at the example configurations on the link you provided and the following is what I believe you'd need to do to use this extension:
Download and unzip the .vsix file from the releases page
Install node if it isn't already installed.
I haven't tested the following configuration, but this is what I'd think would be appropriate based on the examples. This configures this extension to be used as the debug adapter for GDB to debug a C application. Change this based on whatever language you are trying to debug. Additionally, you may want different SSH parameters, based on how you plan to authenticate (password vs keyfile) or additional SSH options.
localdap=require("dap")
dap.adapters.gdb= {
type="executable",
command="node",
args= {"./out/src/gdb.js"},
cwd="/path/to/unzipped/vsix"
}
dap.configurations.c= {
{
type="gdb", -- Must match name of DAP adapter defined aboverequest="launch",
name="GDB: Launch over SSH",
target="<application name>",
cwd="${workspaceFolder}",
ssh= {
host="<remote host>",
user="<user name>",
cwd="<cwd on remote machine>",
keyfile="<location of keyfile>",
forwardX11=false
}
}
}
Let us know if this works or if you had to make changes from this. It would be good to have this extension added to the documentation for the Neovim DAP client.
Activity
brownts commentedon Nov 20, 2022
Hi @hiberabyss:
I'm not a Neovim user, but I did take a look at the example configurations on the link you provided and the following is what I believe you'd need to do to use this extension:
.vsixfile from the releases pagenodeif it isn't already installed.I haven't tested the following configuration, but this is what I'd think would be appropriate based on the examples. This configures this extension to be used as the debug adapter for GDB to debug a C application. Change this based on whatever language you are trying to debug. Additionally, you may want different SSH parameters, based on how you plan to authenticate (password vs keyfile) or additional SSH options.
Let us know if this works or if you had to make changes from this. It would be good to have this extension added to the documentation for the Neovim DAP client.