Giter Site home page Giter Site logo

simcha / atom-ruby-debugger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johanlunds/atom-ruby-debugger

0.0 2.0 0.0 1.54 MB

A small Ruby-debugger for Github's Atom text editor

License: MIT License

Ruby 1.39% CoffeeScript 97.33% CSS 1.28%

atom-ruby-debugger's Introduction

ruby-debugger package for Atom

Build Status

Provides a small Ruby-debugger in Atom. THIS IS CURRENTLY WORK-IN-PROGRESS - IT'S NOT USEFUL YET.

TODO: insert screenshot here

Instructions

  1. apm install ruby-debugger
  2. gem install ruby-debug-ide debase
  3. Start the debugger with rdebug-ide -- [SCRIPT] [ARGUMENTS...].
    Example: rdebug-ide -- bin/rails server. It's important that you use the full path to a Ruby-script. Otherwise you'll get an error.
  4. Connect to the debugger from Atom.

Currently only Ruby 2 is supported. It might work with 1.9 but it hasn't been tested.

Debugging with rspec, rake or bundle

If you want to start the debugger with rspec, rake, bundle or some other Ruby-binary that you don't know the path to:

  • rdebug-ide -- `which rspec` spec/lib/foo_spec.rb
  • If you use Rbenv it generates shell wrapper scripts that makes the previous not work. Use rbenv which instead of which.

Configuration

If you run rdebug-ide with --port PORT you can tell Atom which port to connect to:

"ruby-debugger":
  port: 1234

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.