vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/breakpoints.rb
#
# Print out full information about a breakpoint.
#
# Includes surrounding code at that point.
#
Print out full information about a breakpoint.
Includes surrounding code at that point.
Print out full information about a breakpoint . Includes surrounding code at that point .
def print_full_breakpoint(breakpoint)
        header = "Breakpoint #{breakpoint.id}:"
        status = breakpoint.enabled? ? "Enabled" : "Disabled"
        code = breakpoint.source_code.with_line_numbers.to_s
        condition = if breakpoint.expr
                      "#{bold('Condition:')} #{breakpoint.expr}\n"
                    else
                      ""
                    end
        output.puts <<-BREAKPOINT.gsub(/ {8}/, "")
          #{bold(header)} #{breakpoint} (#{status}) #{condition}
          #{code}
        BREAKPOINT
      end
def print_full_breakpoint ( breakpoint ) header = "Breakpoint #{breakpoint.id}:" status = breakpoint . enabled? ? "Enabled" : "Disabled" code = breakpoint . source_code . with_line_numbers . to_s condition = if breakpoint . expr "#{bold('Condition:')} #{breakpoint.expr}\n" else "" end output . puts <<-BREAKPOINT . gsub ( /  {8} / , "" ) #{ bold ( header ) } #{ breakpoint }  ( #{ status } )  #{ condition } #{ code } BREAKPOINT end
Print out full information about a breakpoint.
Print out full information about a breakpoint .
breakpoint