How do I Debug Rails when Server is Unicorn?

When I run the Rails server through WEBrick ("default" in the Server drop down of Run/Debug Configuration), I can set breakpoints and debug like normal.  When I run the Rails server through Unicorn, I never make my breakpoints, even through everything else seems to work fine.  What's up with that?  How do I Debug the Server through Unicorn (which seems zippier than WEBrick) and still have the luxury of setting Breakpoints, Watches, and the like.

We are RubyMine 3.1.1 on Rails 2.3.8 with Enterprise Ruby 1.8.7.  I would love to know how to do this.

The contents of my unicorn_dev.conf.rb is
  listen 3000 # by default Unicorn listens on port 8080
  worker_processes 4 # this should be >= nr_cpus
  stdout_path "/dev/null"

Thanks in advance.


Comment actions Permalink

Here's the solution to timeout problem


Please sign in to leave a comment.