Forum: Ruby on Rails breakpointer failing

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.
8f15d89f469605e9e07a8b5ce5d3d5d1?d=identicon&s=25 Sean Wolfe (Guest)
on 2006-02-02 20:38
(Received via mailing list)
Hey there,

I got a new workstation going on here an Intel iMac, and I've compiled
and installed everything with intel binaries. Everything works fine, I
even got that cool clever lighttpd script running
(http://www.bigbold.com/snippets/posts/show/303).

But the one thing that doesn't work is breakpoints and the breakpointer
script.

When I run script/breakpointer, I get the following error:
/usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getnameinfo:
Non-recoverable failure in name resolution (SocketError)
        from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in
`open_server_inaddr_any'
        from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server'
        from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'
        from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'
        from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'
        from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/breakpoint_client.rb:146
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/breakpoint_client.rb:145
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/breakpointer.rb:1
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
        from script/breakpointer:3

I checked my hosts file and everything seems fine there. I also tried
with the -s option and giving it a full path it didn't work either.

I think that the actual breakpoints aren't working either, because I
tried running the breakpointer from a remote machine pointing it to my
workstation using the -s option, and it never connects when it's at a
breakpoint. I also did a netstat to look for the port 42531 being
opened, and it doesn't appear to be open. But the server surely does
stop at that point.

I tried a bunch of searches on the net and have found pretty much
nothing. Have any of you run into these issues?

--
Sean Wolfe
master nerd of
i heart squares, Co.

3711 N. Ravenswood Ave. #147 Chicago, IL 60613
Ph. (773) 531-6301  Fx. (773) 529-7041
http://www.iheartsquares.com
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-02-02 21:21
(Received via mailing list)
Does breakpoint work locally, with no network interaction?

--
-- Tom Mornini
8f15d89f469605e9e07a8b5ce5d3d5d1?d=identicon&s=25 Sean Wolfe (Guest)
on 2006-02-02 21:36
(Received via mailing list)
I'm not sure what you mean, but on one machine i have a breakpoint
keyword in a method. I run the page with that method, the page spins.
Then on the same computer i run "script/breakpointer" which by default
tries to bind to localhost.

Is there a different way of doing this that I'm not aware of?

On 2/2/06, Tom Mornini <tmornini@infomania.com> wrote:
> > I got a new workstation going on here an Intel iMac, and I've compiled
> >         from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in
> > breakpoint_client.rb:145
> > `require'
> > workstation using the -s option, and it never connects when it's at a
> > breakpoint. I also did a netstat to look for the port 42531 being
> > opened, and it doesn't appear to be open. But the server surely does
> > stop at that point.
> >
> > I tried a bunch of searches on the net and have found pretty much
> > nothing. Have any of you run into these issues?
> >

--
Sean Wolfe
master nerd of
i heart squares, Co.

3711 N. Ravenswood Ave. #147 Chicago, IL 60613
Ph. (773) 531-6301  Fx. (773) 529-7041
http://www.iheartsquares.com
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-02-02 21:45
(Received via mailing list)
Yes, hit the breakpoint via unit or functional tests.

You'll enter the breakpoint without the need for breakpointer.

--
-- Tom Mornini
This topic is locked and can not be replied to.