N
Nigel Gilbert
I am having trouble tracking down the point at which my program is
failing. I have a backtrace that looks like this:
/usr/local/lib/ruby/1.6/net/protocol.rb:468:in `new': wrong argument
type nil (expected String) (TypeError)
from /usr/local/lib/ruby/1.6/net/protocol.rb:468:in `connect'
from /usr/local/lib/ruby/1.6/net/protocol.rb:467:in `timeout'
from /usr/local/lib/ruby/1.6/net/protocol.rb:467:in `connect'
from /usr/local/lib/ruby/1.6/net/protocol.rb:449:in `initialize'
from /usr/local/lib/ruby/1.6/net/protocol.rb:149:in `new'
from /usr/local/lib/ruby/1.6/net/protocol.rb:149:in
`conn_socket'
from /usr/local/lib/ruby/1.6/net/http.rb:499:in `do_start'
from /usr/local/lib/ruby/1.6/net/protocol.rb:131:in `start'
... 6 levels...
from webcount.rb:556:in `each'
from webcount.rb:556:in `wayback'
from webcount.rb:703:in `dosite'
from webcount.rb:813
What I need to know are which lines of code are represented by "... 6
levels...". Is there any way of stopping ruby from abbreviating the
backtrace like this?
(I'm using ruby 1.6.8 (2002-12-24) [powerpc-darwin6.6])
Thanks
Nigel
failing. I have a backtrace that looks like this:
/usr/local/lib/ruby/1.6/net/protocol.rb:468:in `new': wrong argument
type nil (expected String) (TypeError)
from /usr/local/lib/ruby/1.6/net/protocol.rb:468:in `connect'
from /usr/local/lib/ruby/1.6/net/protocol.rb:467:in `timeout'
from /usr/local/lib/ruby/1.6/net/protocol.rb:467:in `connect'
from /usr/local/lib/ruby/1.6/net/protocol.rb:449:in `initialize'
from /usr/local/lib/ruby/1.6/net/protocol.rb:149:in `new'
from /usr/local/lib/ruby/1.6/net/protocol.rb:149:in
`conn_socket'
from /usr/local/lib/ruby/1.6/net/http.rb:499:in `do_start'
from /usr/local/lib/ruby/1.6/net/protocol.rb:131:in `start'
... 6 levels...
from webcount.rb:556:in `each'
from webcount.rb:556:in `wayback'
from webcount.rb:703:in `dosite'
from webcount.rb:813
What I need to know are which lines of code are represented by "... 6
levels...". Is there any way of stopping ruby from abbreviating the
backtrace like this?
(I'm using ruby 1.6.8 (2002-12-24) [powerpc-darwin6.6])
Thanks
Nigel