Git Product home page Git Product logo

vim-byebug-breakpoints's Introduction

Vim Byebug Breakpoints

This vim plugin provides the ability to toggle breakpoints in Ruby code using the Byebug debugger.

It's intended to be a lightweight solution to set breakpoints without having to litter your code with byebug statements - but it's not a full-flegded debugger. It does, however, work without needing to configure any server. The plugin simply inserts breakpoint commands into your project's auto-loaded byebug.rc.

Installation

Install kmewhort/vim-byebug-breakpoints using your favourite vim plugin manager.

Usage

Once installed, use b to toggle breakpoints on/off in any ruby code. You can disable this mapping with let g:vim_byebug_breakpoints_map_keys = 0, then map the key combination of your choice to the command :ToggleByebugBreakpoint.

You have several options for running your code with byebug and hitting the breakpoints:

  1. Launch ruby scripts, specs, etc using byebug - eg. byebug rpsec my_code.rb;
  2. Add byebug hooks directly into your spec helper or other initialization code - eg.
require 'byebug'
Byebug.start
Byebug.run_init_script
  1. For use with Rails, use byebug-rails-loader

Ensure that you start vim from your project directory - this is where Vim Byebug Breakpoints looks for your .byebug.rc first time. If not found it will go up throught the ancestors until found a .byebug.rc if not It will create one at current directory.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kmewhort/vim-byebug-breakpoints

License

The plugin is available as open source under the terms of the MIT License.

vim-byebug-breakpoints's People

Contributors

kmewhort avatar tlmak0 avatar

Watchers

 avatar  avatar

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.