diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/debug.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 40886b14a6..b5ae3e95c8 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -753,8 +753,8 @@ EOHELP end def display_list(b, e, file, line) - stdout.printf "[%d, %d] in %s\n", b, e, file if lines = SCRIPT_LINES__[file] and lines != true + stdout.printf "[%d, %d] in %s\n", b, e, file b.upto(e) do |n| if n > 0 && lines[n-1] if n == line @@ -764,6 +764,9 @@ EOHELP end end end + elsif File.exists? file + Tracer::Single.get_line(file, line) + display_list(b, e, file, line) else stdout.printf "No sourcefile available for %s\n", file end |