module PryByebug::Helpers::Location

def current_file(source = target)


location.
Current file in the target binding. Used as the default breakpoint
def current_file(source = target)
  # Guard clause for Ruby >= 2.6 providing now Binding#source_location ...
  return source.source_location[0] if source.respond_to?(:source_location)
  # ... to avoid warning: 'eval may not return location in binding'
  source.eval("__FILE__")
end