lib/debugger.rb
# Dynamically sets a break point for the SES Debugger at the line following
# the line this method is placed on. Particularly useful when a break point
# is only temporarily required.
# 
# @return [void]
Dynamically sets a break point for the SES Debugger at the line following
the line this method is placed on. Particularly useful when a break point
is only temporarily required.
Dynamically sets a break point for the SES Debugger at the line following the line this method is placed on . Particularly useful when a break point is only temporarily required .
def breakpoint
    klass = is_a?(Module) ? self : self.__class__
    line  = caller[0].split(':')[1].to_i
    breakpoints = SES::Debugger.breakpoints[klass] ||= []
    breakpoints << line unless breakpoints.include?(line)
  end
def breakpoint klass = is_a? ( Module ) ? self : self . __class__ line = caller [ 0 ] . split ( ':' ) [ 1 ] . to_i breakpoints = SES :: Debugger . breakpoints [ klass ] ||= [ ] breakpoints << line unless breakpoints . include? ( line ) end
Dynamically sets a break point for the SES Debugger at the line following
the line this method is placed on.
Dynamically sets a break point for the SES Debugger at the line following the line this method is placed on .
None
void