Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
problems with rubygems while debugging
Noë Spinner
1/28/2009 7:55:00 PM
When I try to debug a ruby file I got the following message:
$ ruby -rdebug test.rb
Debug.rb
Emacs support available.
/usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10:require 'rubygems'
(rdb:1)
whenever I try to debug than my test.rb I run into problems with that
rubygems.rb as you can see above:
(rdb:1) b test:3
Set breakpoint 1 at test:3
(rdb:1) c
/usr/local/lib/ruby/1.8/rational.rb:78: `undefined method `gcd' for
Rational(1,
2):Rational' (NoMethodError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:882:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:882
from /usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10:in
`require'
from /usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10
/usr/local/lib/ruby/1.8/rational.rb:78: gcd = num.gcd(den)
(rdb:1)
Can anyone help me?
--
Posted via
http://www.ruby-...
.
2 Answers
Alex 2k8
1/28/2009 10:36:00 PM
0
Hello, Noe
You can try this:
ruby -rubygems -rdebug test.rb
- Alex
--
Posted via
http://www.ruby-...
.
Noë Spinner
2/1/2009 3:30:00 PM
0
Alex 2k8 wrote:
> Hello, Noe
>
> You can try this:
> ruby -rubygems -rdebug test.rb
>
> - Alex
Hi Alex,
thank you very much, that's it.
Noë
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
problems with rubygems while debugging
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password