Forum: Ruby on Rails NoMethodError when using Breakpoint

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2119f016588ba13373484491bd2dd6d1?d=identicon&s=25 Joe Peck (fatcatt316)
on 2007-01-03 15:45
When I put something like:

breakpoint["here is the place"]

in my code (say, in the controller), the breakpointer will run
correctly.  But after I exit out of the breakpointer, the browser gets a
"NoMethodError" saying:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]

This happens even if there's no array in the controller.  If I take the
breakpoint out of the code, the program runs fine.

What I'd like to be able to do is put breakpoints in my code, have the
breakpointer find them and stop on them, then when I exit out of the
breakpointer it should continue on with the program.  Anyone else ever
get NoMethodErrors when using breakpoint?
This topic is locked and can not be replied to.