20120403

pow, guard and rdebug - staying in the web app dev env heaven: for ruby 1.9 only

The new version (for ruby 2.1) is here.

If you, like me, use pow and guard (with spork of Rails 3 standard setup) for the perfect web app development environment, you might have stumbled upon a problem of debugging the server with rdebug -c which tends to connect to a wrong process even when working on just one project (and that's because spork itself starts the remote debug server by default).

So, firstly, you will probably want to limit your server instances run by pow to 1 by
echo export POW_WORKERS=1 >> ~/.powconfig

Then, to actually enable remote debugging you should place the following in your ./config/environments/development.rb:


And finally, to set the port of your choice for the project,
echo export RUBY_DEBUG_PORT=10007 >> ./.powenv

Now, you are welcome to
touch tmp/restart.txt
and (after a bunch of your CPU's cycles)
rdebug -c -p 10007

You're back in heaven, have a happy stay!

15 comments:

  1. I enjoyed reading your post. I will share it with my other friends as the information is really very useful. Keep sharing your excellent work.
    hire magento developer

    ReplyDelete
  2. Your blog have very good information. I also have some worth information regarding the service, I think this info will be very helpful.visit here software development agency Denver

    ReplyDelete
  3. It's a nice article, which you have shared here about the web design. I would like to thanks for sharing this post here.
    Maine web design company

    ReplyDelete
  4. Such a nice blog and i appreciate your all efforts about your thoughts. it's really good work. well done. I would like to share something really helpful. Best software company in Papua New Guinea

    ReplyDelete
  5. Thanks for sharing this wonderful post, there are many companies which provide online services. as we provide Web development Miami at affordable prices. for more info visit our website.

    ReplyDelete
  6. Nice article, which you have shared here about the seo. Your article is very informative and useful to know more about the process of SEO. Thanks for sharing this article here Marketing Agency for Small Business

    ReplyDelete
  7. I recently came across your blog and have been reading along. we provide Public Relations Agency Birmingham at affordable prices. for more info visit our website.

    ReplyDelete
  8. Are you a businessman? Then you should have a website. Because nowadays everyone is searching for their desire product via google or Facebook. If you have a website then do proper Internet Marketing Services then your website will appear on google top list. Also, you will get more sales. Think again and take the best decision.

    ReplyDelete
  9. Why are line broadcast important? Sends messages to all computers on a particular LAN or subnet. What are common carriers, neighborhood trade carriers, and interexchange carriers? Compare and differentiate circuit exchanged administrations, committed circuit administrations, and bundle exchanged administrations.

    ReplyDelete
  10. The delightful article you have posted here. This is a good way to increase our knowledge. Continue sharing this kind of articles, Thank you.Android App Developer Company Dubai

    ReplyDelete
  11. A website analysis is the best place to start when considering or beginning an SEO campaign. rockabillyhall com

    ReplyDelete
  12. Thanks for sharing informative blog , i really appreciate your work , really I was facing this error , then my friend suggest me top Online Website Design services providers who rebuild my site at to given time

    ReplyDelete
  13. Explainer Mojo is also the leading whiteboard explainer video company in the UK, providing 2D-3D and Isometric animated videos to clients successfully. So feel free to connect to Explainer Mojo for the best explainer video services.

    ReplyDelete