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!

24 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
  14. In this post you have shared such a great post about web application development. I would like to thank you for sharing such informative post. Keep Posting. film and video production Birmingham

    ReplyDelete
  15. cliquez pour enquêter jetez un œil ici Visitez le site Web Dior Dolabuy apprenez les faits ici maintenant portefeuilles de répliques

    ReplyDelete
  16. Thank you for your informative post!!!
    Village Talkies a top-quality professional corporate video production company in Bangalore and also best explainer video company in Bangalore & animation video makers in Bangalore, Chennai, India & Maryland, Baltimore, USA provides Corporate & Brand films, Promotional, Marketing videos & Training videos, Product demo videos, Employee videos, Product video explainers, eLearning videos, 2d Animation, 3d Animation, Motion Graphics, Whiteboard Explainer videos Client Testimonial Videos, Video Presentation and more for all start-ups, industries, and corporate companies. From scripting to corporate video production services, explainer & 3d, 2d animation video production , our solutions are customized to your budget, timeline, and to meet the company goals and objectives.
    As a best video production company in Bangalore, we produce quality and creative videos to our clients.

    ReplyDelete
  17. website link j0h79r9n37 buy replica bags online 7a replica bags meaning replica bags wholesale in divisoria hop over to these guys k9s93t0i95 replica bags from turkey get more s9a88k8c01 fake louis vuitton replica bags thailand

    ReplyDelete

  18. Excellent ! I personally like your blog and waiting for more articles like this

    ReplyDelete
  19. The original founders of the firm are still in command. We were originally a small group of friends who chose to assist their classmates after realising that tough this was for many of their peers to raise their grades and balance their loads.

    ReplyDelete
  20. We have been serving assignment writing services to students from all over the globe for several years. Our workforce consists of Ph.D. specialists from a variety of subjects and expertise. Because we are one of the successful companies providing academic assistance to students, we only produce the greatest work and use the best writers to accomplish this.

    ReplyDelete
  21. Creatix9 is a full-service Best web design agency in USA that helps the brands in growing and nurture them with passion and dedication. We solely believe that every day is a new opportunity, so never miss any chance of creativity, innovation and quality work. Our strategic approach is always focused on the timely execution of the projects while delivering eminent service and quality to our clients and prospects worldwide.

    ReplyDelete