Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug listing when called from the same file the debug module has been required from #280

Closed
wants to merge 1 commit into from

Conversation

berdario
Copy link

@berdario berdario commented Apr 9, 2013

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

@zzak
Copy link
Member

zzak commented Apr 24, 2013

Thank you for your contribution! Please continue discussion on Bug #8318

@zzak zzak closed this Apr 24, 2013
nobu added a commit that referenced this pull request Apr 24, 2013
* lib/debug.rb (display_list): Fix debug listing when called from the
  same file it has been required.  patch by Dario Bertini <berdario AT
  gmail.com> [Bug #8318] [fix GH-280]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlove pushed a commit to tenderlove/ruby that referenced this pull request Jan 24, 2014
* lib/debug.rb (display_list): Fix debug listing when called from the
  same file it has been required.  patch by Dario Bertini <berdario AT
  gmail.com> [Bug ruby#8318] [fix rubyGH-280]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants