Skip to content

JezC/code_buddy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeBuddy makes it easy for you to understand the code behind each line of a Ruby exception stack. When something goes wrong during development and you get an exception do you read through the stack trace and start opening files in VIM or TextMate? With CodeBuddy the stack trace and source files are all available in your browser making it easy to understand what’s going on.

Simply add one line to your app’s Gemfile and the Rails exception page just got better.

gem 'code_buddy'

And install it:

$ bundle install

Now when you’re running in development (or any environment with config.consider_all_requests_local=true) whenever you see a exception page you’ll be able to click on the stack and see it inside CodeBuddy.

$ gem install code_buddy
$ code_buddy
== Sinatra/1.1.0 has taken the stage on 4567 for development with backup from Mongrel

Now open localhost:4567 and paste your stack.

This should also work as Rack middleware in Rails 2.3.x or any Rack app soon, but we haven’t tried it yet.

We also haven’t tested viewing a stack with Internet Explorer or running the Sinatra app on Windows.

Alex Rothenberg, Daniel Higginbotham, Pat Shaughnessy

About

Sinatra app to view a Ruby stack trace

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.6%
  • Ruby 21.4%