From: Florian Gross Date: 2004-12-27T13:41:51+09:00 Subject: Re: Breakpoints on 1.6.8? Brent Roman wrote: > I don't know if it's working "correctly", but it is functional. Ah, that's good to know. :) > I liked the breakpoint idea so much that I distilled it > into the following for 1.6.8: > [snip] > The main limitation of this hack verses the real one is that the caller > must explicitly pass the binding into the breakpoint. There's no > "bindingOfCaller". If you'd like to take a crack at that, I'd be most > grateful. Not sure what you want there -- Binding.of_caller is already available as a library and should be easy to drop in. Change breakpoint() to this and it ought to work: def breakpoint(name = "breakpoint", context = nil) return IRB.breakpoint(context, name) if context Binding.of_caller do |context| IRB.breakpoint(context, name) end end But maybe I am misunderstanding.