280.patch

Zachary Scott, 04/24/2013 12:44 PM

Download (1.06 KB)

View differences:

lib/debug.rb
753 753
    end
754 754

  
755 755
    def display_list(b, e, file, line)
756
      stdout.printf "[%d, %d] in %s\n", b, e, file
757 756
      if lines = SCRIPT_LINES__[file] and lines != true
757
        stdout.printf "[%d, %d] in %s\n", b, e, file
758 758
        b.upto(e) do |n|
759 759
          if n > 0 && lines[n-1]
760 760
            if n == line
......
764 764
            end
765 765
          end
766 766
        end
767
      elsif File.exists? file
768
        Tracer::Single.get_line(file, line)
769
        display_list(b, e, file, line)
767 770
      else
768 771
        stdout.printf "No sourcefile available for %s\n", file
769 772
      end
770
-