The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
call_stack 0.1.0: making ruby-breakpoint/Rails' breakpointer work with Ruby 1.8.5

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
call_stack 0.1.0: making ruby-breakpoint/Rails' breakpointer work with Ruby 1.8.5 Posted: Sep 7, 2006 6:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: call_stack 0.1.0: making ruby-breakpoint/Rails' breakpointer work with Ruby 1.8.5
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

Ruby 1.8.5 has been out for a couple weeks and broke Binding.of_caller and Rail's breakpointer. I'd promised I'd provide a workaround, and I finally wrapped it up.

I've just released call_stack: backtrace data and 1.8.5-safe breakpoint/Binding.of_caller, which provides an alternative Binding.of_caller implementation and some additional functionality to obtain backtrace information (the "call stack"). You can override a pre-existent binding_of_caller.rb by loading breakpoint185.rb:

 ruby -rbreakpoint185 myapp.rb

Here's how you'd use it with Rails' breakpointer:

  1. put the breakpoint calls in the code you're inspecting, as usual
  2. start the "breakpointer" as usual with script/breakpointer
  3. run the application with ruby -rbreakpoint185 script/server

Read more...

Read: call_stack 0.1.0: making ruby-breakpoint/Rails' breakpointer work with Ruby 1.8.5

Topic: Soapbox now reads my blog Previous Topic   Next Topic Topic: Mac OS, upgrade to Ruby 1.8.5

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use