vim-delve
vim-delve copied to clipboard
What format is DlvExec expecting arguments?
DlvExec ~/go/bin/acommand anargument
results in:
zsh:cd:1: no such file or directory: anargument
But any quoting of the command causes DlvExec to just split the buffer window.
Ah, looks like correct is:
DlvExec ~/go/bin/acommand -- anargument
I discovered that DlvExec expects something like the following (using neovim) at the time of writing:
:DlvExec ./program . --\ subcommand\ subsubcommand
For its second argument it expects the directory to run in, for its second and final argument, it accepts one string. So you'll have to escape the space as needed.
I found myself directly called the runCommand as I have much more complex args
call delve#runCommand("exec ./path/to/binary", "-- -c ./config.json", ".")
Found this in the following function https://github.com/sebdah/vim-delve/blob/d0729de877dc17e33adb594a54d826a013cb24fd/plugin/delve.vim#L185-L189