sebdah / vim-delve

Neovim / Vim integration for Delve
MIT License
502 stars 24 forks source link

Change cwd of delve process #47

Open Snyssfx opened 3 years ago

Snyssfx commented 3 years ago

Hi! First of all, thanks for the great plugin, it greatly improves my debugging experience :)

When I work with a console dlv, my usual debugging routine is to go to the project root and run dlv debug ./cmd/main.go there, since some of the programs expect the root current work dir.

But I don't see how to run :DlvDebug from root dir or change cwd. How could I do this?

As a workaround I managed to pass relative paths as command line options to binary, so it's not so important now.