class Byebug::BreakCommand

def method_breakpoint(location)

def method_breakpoint(location)
  location.match(/([^.#]+)[.#](.+)/) do |match|
    k = bb_warning_eval(match[1])
    m = match[2]
    klass = k && k.is_a?(Module) ? k.name : match[1]
    method = m.intern
    Breakpoint.add(klass, method, @match[2])
  end
end