Giter Site home page Giter Site logo

vim-godebug's Introduction

vim-GoDebug

Go debugging for Vim.

See it in action

vim-godebug

Prerequisites

* Go
* [Neovim](https://neovim.io/)
* [vim-go](https://github.com/fatih/vim-go)
* [Delve](https://github.com/derekparker/delve)
* On macOS, it is advised to install through [brew](https://github.com/derekparker/delve/blob/master/Documentation/installation/osx/install.md#via-homebrew), due to problems with certificates.

Installation

Godebug follows the standard runtime path structure. There are some helper lines for your vim/nvim for popular plugin managers.

  • Vim 8 packages
    • git clone https://github.com/jodosha/vim-godebug.git ~/.vim/pack/plugins/start/vim-go
  • Neovim packages
    • git clone https://github.com/jodosha/vim-godebug.git ~/.local/share/nvim/site/pack/plugins/start/vim-go
  • Pathogen
    • git clone https://github.com/jodosha/vim-godebug.git ~/.vim/bundle/vim-go
  • vim-plug
    • Plug 'jodosha/vim-godebug'
  • Vundle
    • Plugin 'jodosha/vim-godebug'

Usage

:call GoToggleBreakpoint() to add or remove a breakpoint at the current line :call GoDebug() to start a debug session for the main package

Development and Improvements

This is a tool that is useful for my workflow. If you think it's useful, be my guest and use it too.

I won't actively support this plugin. If you find a bug, or want an improvement, please open a PR if you want to see it fixed.

Troubleshooting

Error detected while processing function godebug#debug

vim is not yet supported. Try it with neovim.

Copyright

2017 - Luca Guidi - https://lucaguidi.com

vim-godebug's People

Contributors

cmertz avatar eterps avatar joaoofreitas avatar jodosha avatar shazow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-godebug's Issues

Error detected while processing function godebug#debug

I've got this output while calling GoDebug:

Error detected while processing function godebug#debug[19]..go#jobcontrol#Spawn[4]..<SNR>206_spawn:
line   49:
E117: Unknown function: jobstart
E15: Invalid expression: jobstart(argv, job)

What I am doing wrong?


Steps to reproduce:

  • toggle breakpoint
  • call GoDebug

Dlv installed via brew, vim-godebug and all other the plugins installed and updated via Vundle.vim

nevim Not enough arguments for function

Error detected while processing function godebug#debug:
line 2:
E119: Not enough arguments for function: go#term#new
E15: Invalid expression: go#term#new(a:bang, ["dlv", "debug", "--init=" . g:godebug_breakpoints_file])

neovim_console

Why does my neovim console always open on the left side , can I be opened at the bottom?

Missing "debug" subcommand

Brilliant plugin, thank you for making it available. However, when trying to get it to run, and having all the prerequisites installed as mentioned in the README.md, I'm getting the following after having set a breakpoint and running :GoDebug:

vim-go: go: unknown subcommand "debug"

If I manually run go debug I get the same error message. Is there anything else I need to install before being able to use the plugin?

Define GoDebug arguments

Hey there,

I was wondering how I can archive the following over vim dlv debug main.go -- version for example ?

Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.