DebugExtras Gem Build Status Code Climate

Extras for Ruby on Rails debugging. Screenshots.

Features

At this moment provide next things:

  1. dd <variable> at any place of your application (controllers/models/views/services/etc). After that you can see dump of this variable without any other stuff at your web browser. It's something like simple alternative to dd function from Laravel for Ruby on Rails.

  2. dump <variable> at your views. It's alternative for debug method from ActionView::Helpers::DebugHelper.

  3. temporary fix for better_errors and binding_or_caller performance issue.

Installation

Add this line to your Gemfile:

gem 'debug-extras', group: :development

And then execute:

$ bundle

Or you can install it using rgversion like any other gems.

Screenshots

dd from controller/model/service/etc:

dd Book.all

image

dump from views:

<%= dump Book.all %>

image