Integrate vim and gdb, it could help you:
- View code in vim and run gdb command in a separated vim window
- Login to remote manchine and run gdb
Now, also suppport dlv to debug go files
- Use
GdbConnect host
to connect to remote server, this willssh host
ordocker exec -it host
(if the first item in g:nvimgdb_host_cmd isDocker
) first, then run the following command ing:nvimgdb_host_cmd
.
let g:nvimgdb_host_cmd = {
\ 'dr01' : ['cads', 'gdb -f ./ads'],
\ 'ts' : ['Docker', 'gdb -q -f --pid `pgrep transcoding`'],
\ }