passenger-irb with debugger issues

36 views
Skip to first unread message

v a

unread,
Apr 17, 2013, 2:05:42 AM4/17/13
to phusion-...@googlegroups.com
I'm running passenger enterprise 4.0.0-rc6 locally (development) on my OS X mountain lion with apache under MAMP.
I have a rack app (Sinatra) running through a sub-uri configuration.

Everything works great. Except I can't seem to attach a debugger to the running process successfully.

When I run passenger-irb --debugger <pid>, everything looks fine. I get the message:

Using Ruby interpreter: /Users/varun/.rvm/wrappers/ruby-1.9.3-p362/ruby
Using rdebug command  : /Users/varun/.rvm/gems/ruby-1.9.3-p362/bin/rdebug
*** Attaching debugger to process 55512.
*** Attaching will succeed as soon as process 55512 reaches a 'debugger' call.
*** Press Ctrl-C or Ctrl-D to exit debugger.

So now, I go and refresh any page of my Sinatra app which has a couple of debugger calls for the given route/s. And nothing. I mean the debugger remains where it is, and the request to the route completes without the terminal dropping into the debugger. It's as if the debugger call just wasn't there.

What am I missing?

Hongli Lai

unread,
Apr 23, 2013, 6:52:01 AM4/23/13
to phusion-passenger
Could it be that there are multiple processes, and you're not
accessing the right process? You can check this in passenger-status.

Also, did you enable the 'PassengerDebugger on' config option?
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/phusion-passenger?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages