The agile book says “You can inspect variables, set values, add other
breakpoints, and generally have a good time”.
This is very sweet and totally useless. For example, I want to see the
the cookies variable and so on. These names are unknown. I think I
guess that the things
that are available depend on where you put the breakpoint() call. I’ve
tried a couple of
different spots and “session” is unknown.
For example in the Depot example I have “class AdminController <
But I don’t know the name of the AdminController object so I can’t find
AdminController.session. Likewise for the other ApplicationController.
Likewise I have
models derived from ActiveRecord::Base. I can call find() because
that’s class method.
But what about the instance variables of my AR objects?