Breakpoints in Rails

| | TrackBacks (0)

Quick reference for myself and anybody interested:

1. Choose where you want breakpoints, and insert them like


# code above
breakpoint("Cool#identifier")
# code below

2. browse through your app until you hit the break
3. run to you console and launch

# ./script/breakpointer

There you go, here it comes a nice ruby session, with a few boons. Try playing with:
local_variables
source_lines
caller

0 TrackBacks

Listed below are links to blogs that reference this entry: Breakpoints in Rails.

TrackBack URL for this entry: http://bru.bzaar.net/mt/mt-tr4ckm3.fcgi/742

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

Friday

  • Bru tweeted, "looking forward some more Pelevin's pages on my route to a friendly weekend."
  • Bru saved the link Ruby Linguistics
  • Bru saved the link Generic micro to pachube interface?
  • Bru tweeted, "listening to @zephoria's LeWeb talk while going through friday's tasks. http://www.ustream.tv/recorded/2836730"
  • Bru saved the link Airlock

Thursday

Wednesday

Tuesday

Thursday

Tuesday

Pages

Powered by Movable Type 4.25