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
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.
Hi, I'm looking for a gdb adapter supporting running gdb via ssh. This plugin could achieve this.
How to make this work with neovim dap client?
Seems need to know how to start the adapter with a command.
Thanks!
The text was updated successfully, but these errors were encountered: