This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
David Dollar (author)
Mon Aug 31 18:51:47 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue May 19 09:34:35 -0700 2009 | |
| |
README.rdoc | ||
| |
Rakefile | Mon Aug 31 18:51:38 -0700 2009 | |
| |
VERSION | ||
| |
ext/ | ||
| |
init.rb | Thu Nov 05 16:22:54 -0800 2009 | |
| |
lib/ | ||
| |
rack-debug.gemspec | ||
| |
tasks/ |
README.rdoc
Rails Plugin
# install $ script/plugin install git://github.com/ddollar/rack-debug.git # config/environments/development.rb config.middleware.use "Rack::Debug"
Gem
# install $ gem source add http://gems.github.com $ gem install ddollar-rack-debug # add a use line to your builder require 'rack/debug' Rack::Builder.new do use Rack::Debug run MyApp.new end
Add breakpoints to your code
@user = User.find(params[:id]) debugger render :show
Debugging:
# run the rake task, $ rake debug Connected. # refresh a page in your browser, your app will break at debugger statements (rdb:1) p @user #<User id: 1, name: "David Dollar", email: "ddollar@gmail.com", created_at: "...", updated_at: "...">
Thanks to:
Rack::Bug for a good example of Rack middleware in Rails Ben Scofield for making me want to build some Rack middleware









