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.
on 2005-12-05 13:02
on 2005-12-05 13:51
Hi, ----- Original Message ----- From: "HaPK" <theHaPK@yandex.ru> To: "ruby-talk ML" <firstname.lastname@example.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
on 2005-12-05 14:40
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...