Forum: Ruby Ruby debuger on Windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ab5bd1abf62d189441269460192c4003?d=identicon&s=25 theHaPK (Guest)
on 2005-12-05 13:02
(Received via mailing list)
Can somebody point out, why on Windows
ruby -r debug my_ruby_script.rb

start in "ubygems.rb" and not in "my_ruby_script.rb". With "start" I
mean, that I expected to see the first line of _my_ file as the current
statement.

PS I'm using ruby 1.8.2-14 (2004-12-25) - installed from
OneClickInstaller.
E51d56251ec4affafe85ee9367228965?d=identicon&s=25 phasis68 (Guest)
on 2005-12-05 13:51
(Received via mailing list)
Hi,
----- Original Message -----
From: "HaPK" <theHaPK@yandex.ru>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Monday, December 05, 2005 9:00 PM
Subject: Ruby debuger on Windows


>
That is due to RUBYOPT environment variable.

First unset RUBYOPT
and run
  ruby -r debug my_ruby_script.rb

You can do it with one line
  ruby -e "ENV['RUBYOPT']=nil;system('ruby -rdebug my_ruby_script.rb')"

Hope this helps,

Park Heesob
Ab5bd1abf62d189441269460192c4003?d=identicon&s=25 theHaPK (Guest)
on 2005-12-05 14:40
(Received via mailing list)
HaPK wrote:

> Can somebody point out, why on Windows
> ruby -r debug my_ruby_script.rb
>
> start in "ubygems.rb" and not in "my_ruby_script.rb". With "start" I
> mean, that I expected to see the first line of _my_ file as the
> current statement.
>
> PS I'm using ruby 1.8.2-14 (2004-12-25) - installed from
> OneClickInstaller.

Oh... figured out myself.. The problem was in RUBY_OPT environment
variable set up to "rubygems" (multiple times: "rubygems rubygems ... "
I think its a bug in OneClickInstaller for ruby 1.8.2-14)

BTW, I had problems with Rails (actually with ActiveRecord) from version
0.14.1 with ruby 1.8.2-14.. After upgrading to 1.8.2-15 problems gone...
This topic is locked and can not be replied to.