New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source-level debugging in Vim #233

Closed
szabba opened this Issue Nov 21, 2014 · 9 comments

Comments

6 participants
@szabba

szabba commented Nov 21, 2014

I don't know if this should be a concern for vim-go specifically or maybe a new project should be started, but there's a new debugger in town apparently, and someone from the IntelliJ Go plugin team has contacted him about integrating it: derekparker/delve#22 . They are considering an HTTP API currently.

So, just a heads up in case anyone wants to do anything with this.

@fatih fatih added the feature label Nov 22, 2014

@fatih

This comment has been minimized.

Owner

fatih commented Nov 22, 2014

Implementing it into Vim's non-async ui would be a hard thing, but let's see if someone else jumps in to implement it. Thanks for noticing it.

@fatih

This comment has been minimized.

Owner

fatih commented Dec 29, 2014

I'll close this for now as I have limited time and I don't want to clutter the issues section with features that I'm going to not eventually tackle in near future. We can always open this again once the debugging stuff is more mature.

@fatih fatih closed this Dec 29, 2014

@fatih fatih added the wontfix label Dec 29, 2014

@shazow

This comment has been minimized.

Contributor

shazow commented Sep 15, 2015

Just stumbled on this, worth mentioning that this might be another good fit for a neovim feature with the async job control. :)

@nhooyr

This comment has been minimized.

Contributor

nhooyr commented Nov 19, 2015

I'll take a stab at trying to implement this in neovim soon.

@shazow

This comment has been minimized.

Contributor

shazow commented Nov 19, 2015

Also related, Microsoft just launched VSCode with a Go plugin with partial delve support: https://github.com/Microsoft/vscode-go

@nhooyr

This comment has been minimized.

Contributor

nhooyr commented Nov 19, 2015

thats actually exactly why I came on here. was looking to see if vim-go is going to support it any time soon.

@fatih

This comment has been minimized.

Owner

fatih commented Nov 19, 2015

@shazow @nhooyr I've also switched partly to neovim. I have now an init.vim file which I use both for Vim and Neovim. However my duties are more about vim rather than neovim. But the great thing is that we can introduce features into vim-go with the guards has("nvim") easily. And I really like neovim and think that the async behavior is a game changer.

I'm always open to contributions. My initial work was to provide async GoBuild, GoRun, etc... To do this we first need some helper functions and wrappers, so we can build on top of it (like the path.vim file).

I'm pretty excited about the possibilities. But also remember that every single feature is going to introduce maintenance cost, which eventually make it harder for me to work on vim-go. So I'm thinking even though when we introduce these features, I'm going to mark the explicitly as experimental until it's very stable and can be used without any problem.

@timshannon

This comment has been minimized.

timshannon commented Sep 10, 2016

Even if there isn't full integration, more simple integration like setting break points in vim /nvim that generate a file to load into delve would be useful.

@jasonkeene

This comment has been minimized.

Contributor

jasonkeene commented Sep 15, 2016

First class support would be nice. I believe async jobs are available in vim 8 now.

As a work around you can create a snippet for runtime.Breakpoint().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment