Issue #8318 has been reported by zzak (Zachary Scott).

----------------------------------------
Bug #8318: Fix debug listing when called from the same file the debug module has been required from
https://bugs.ruby-lang.org/issues/8318

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee: 
Category: lib
Target version: current: 2.1.0
ruby -v: 2.1.0dev
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
From ((<GitHub#280|URL:https://github.com/ruby/ruby/pull/280>))

with this minimal ruby code

(({require 'debug'}))
(({puts}))
when trying to list the code, it'll fail like so:

(({(rdb:1) l}))
(({[-3, 6] in script.rb}))
(({No sourcefile available for script.rb}))
=end


-- 
http://bugs.ruby-lang.org/