From: Roger Pack Date: 2009-10-11T06:13:46+09:00 Subject: Re: Need help invoking debug > C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:require > 'rubygems' > (rdb:1) > > No typos.. does it have something to do with the reference to ubygems. > I haven't played around with the installation files so I don't > understand how a file could be mis-named, but who knows. And looking at > the folder shows both rubygems.rb and ubygems.rb. What's happening is probably that you have RUBYOPT=-rubygems which is a shortcut way to require rubygems, sometimes setup by the one click installer. So when you ruby ruby -r debug some_file it ends up running a require BEFORE it runs that file, and, conveniently, brings you to a debug prompt in the pre-file file. To get around it: gem install ruby-debug then within debugtest.rb require 'ruby-debug' debugger Cheers! -r -- Posted via http://www.ruby-forum.com/.