pboling edited this page Sep 14, 2012 · 11 revisions

Important


NOTE: This has not been updated for rack-insight. The actual README has been updated.


(From the README:)

Usage:

 script/plugin install git://github.com/brynary/rack-bug.git

 # config/environments/development.rb
 config.middleware.use "Rack::Bug"

 # add bookmarklet to browser
 open http://RAILS_APP/__rack_bug__/bookmarklet.html
# If using the gem instead of a plugin (gem install rack-bug)
# config/environments/development.rb
config.gem 'rack-bug', :lib => 'rack/bug'

Notes:

To use rack-bug with hoptoad, you need to stub hoptoad from trying to serialize the environment variables that rack-bug uses like so:
 HoptoadNotifier.configure do |config|
   config.environment_filters << 'rack-bug.*'
 end

Thanks to:

  Django debug toolbar
  Rails footnotes
  Rack's ShowException middleware
  Oink
  Rack::Cache

A nice introductory screencast by brynary:
Rack::Bug debugging toolbar in four minutes

If you’re having trouble with Rack::Bug enabling on a remote server or in production, or with getting SQL queries to work, you should read Security.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.