Ruby debuger on Windows

H

HaPK

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.
 
P

Park Heesob

Hi,
----- Original Message -----
From: "HaPK" <[email protected]>
To: "ruby-talk ML" <[email protected]>
Sent: Monday, December 05, 2005 9:00 PM
Subject: Ruby debuger on Windows

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.
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
 
H

HaPK

HaPK said:
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,199
Messages
2,571,045
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top