All Projects → nguyenquangminh0711 → Ruby_jard

nguyenquangminh0711 / Ruby_jard

Licence: mit
Just Another Ruby Debugger. Provide a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter places only, reduces manual and mental efforts. You can now focus on real debugging.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Ruby jard

gdb-dashboard
Modular visual interface for GDB in Python
Stars: ✭ 8,699 (+1200.3%)
Mutual labels:  syntax-highlighting, debugger, console, visual, tty
Gritty
web terminal emulator
Stars: ✭ 63 (-90.58%)
Mutual labels:  terminal, console, tty
Tty Font
Terminal fonts
Stars: ✭ 44 (-93.42%)
Mutual labels:  terminal, console, tty
Xterm.js
A terminal for the web
Stars: ✭ 12,019 (+1696.56%)
Mutual labels:  terminal, console, tty
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+4508.82%)
Mutual labels:  terminal, hacktoberfest, syntax-highlighting
Tty Pager
Terminal output paging - cross-platform, major ruby interpreters
Stars: ✭ 37 (-94.47%)
Mutual labels:  terminal, console, tty
Dte
A small, configurable console text editor (moved to https://gitlab.com/craigbarnes/dte)
Stars: ✭ 98 (-85.35%)
Mutual labels:  terminal, console, tty
Tldr
📚 Collaborative cheatsheets for console commands
Stars: ✭ 36,408 (+5342.15%)
Mutual labels:  terminal, console, hacktoberfest
Htop
htop - an interactive process viewer
Stars: ✭ 3,076 (+359.79%)
Mutual labels:  terminal, console, hacktoberfest
Finalcut
A text-based widget toolkit
Stars: ✭ 244 (-63.53%)
Mutual labels:  terminal, console, tty
Rich
Rich is a Python library for rich text and beautiful formatting in the terminal.
Stars: ✭ 31,664 (+4633.03%)
Mutual labels:  terminal, hacktoberfest, syntax-highlighting
Mle
Flexible terminal-based text editor (C)
Stars: ✭ 378 (-43.5%)
Mutual labels:  terminal, console, hacktoberfest
Zui
⬢ Zsh User Interface library – CGI+DHTML-like rapid application development with Zsh
Stars: ✭ 95 (-85.8%)
Mutual labels:  terminal, console, tty
Galacritty
WIP GTK terminal emulator based on Alacritty
Stars: ✭ 136 (-79.67%)
Mutual labels:  terminal, console, tty
Tty Markdown
Convert a markdown document or text into a terminal friendly output.
Stars: ✭ 275 (-58.89%)
Mutual labels:  terminal, console, tty
Upterm
A terminal emulator for the 21st century.
Stars: ✭ 19,441 (+2805.98%)
Mutual labels:  terminal, console, tty
Terminology
The best terminal emulator based on the Enlightenment Foundation Libraries
Stars: ✭ 440 (-34.23%)
Mutual labels:  terminal, console
Themer
themer is inspired by trevordmiller/nova and chriskempson/base16.
Stars: ✭ 4,483 (+570.1%)
Mutual labels:  terminal, hacktoberfest
Pulsemixer
CLI and curses mixer for PulseAudio
Stars: ✭ 441 (-34.08%)
Mutual labels:  terminal, console
Buku
🔖 Personal mini-web in text
Stars: ✭ 4,825 (+621.23%)
Mutual labels:  terminal, console

Gem GitHub Workflow Status (branch) GitHub stars From Vietnam with <3

Ruby Jard provides a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter places only, reduces manual and mental efforts. You can now focus on real debugging.

Please visit https://rubyjard.org/ for more information.

RubyJard Demo

(Click for demo video)

Note: Ruby Jard is still under heavy development. Bugs and weird behaviors are expected. If you see one, please don't hesitate to open an issue. I'll try my best to fix.

Install Ruby Jard

Bundler

Add one of those lines into your Gemfile. Note: Ruby Jard is discouraged to use on production environment.

gem 'ruby_jard', group: :development
❯ bundle install

If you would like to use Ruby Jard to debug a test, you can add to group test too.

gem 'ruby_jard', group: [:development, :test]

If you would like to use edged developing version of Ruby Jard:

gem 'ruby_jard', group: :development, git: 'https://github.com/nguyenquangminh0711/ruby_jard'

Ruby Gem

If you want to install Ruby Jard independently from bundler:

gem install ruby_jard

If you want to install a specific version published on Ruby gems:

gem install [email protected]

Run your program with Ruby Jard

How to run your program with Ruby Jard

To use Ruby Jard, you just need to put jard magic method before any places you want to stop. Jard supports stopping at anywhere, including top level binding, instance methods, class methods, string evaluation, or even inside a class declaration.

def test_method(input)
  a = 1
  b = 2
  jard # Debugger will stop here
  c = a + b + input
end

class TestClass
  jard # Yes, it can stop here too
  @dirty_class_method = 1 + 1

  def test_method
    jard
  end

  def self.test_class_method
    jard
  end
end

jard
test_method(5)

Afterward, run your program, just like normally. If your program meets jard execution break point, it gonna stop, show the UI, and let you debug.

In case you meet error undefined local variable or method jard, please require ruby_jard manually at initializing scripts. If you use Ruby Jard with famous frameworks, ruby_jard will be loaded by default

require 'ruby_jard'

Please visit https://rubyjard.org/ for more information.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nguyenquangminh0711/ruby_jard. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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

Code of Conduct

Everyone interacting in the RubyJard project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].