The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
True Confesssions

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Rick DeNatale

Posts: 269
Nickname: rdenatale
Registered: Sep, 2007

Rick DeNatale is a consultant with over three decades of experience in OO technology.
True Confesssions Posted: Oct 18, 2007 1:24 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Rick DeNatale.
Original Post: True Confesssions
Feed Title: Talk Like A Duck
Feed URL: http://talklikeaduck.denhaven2.com/articles.atom
Feed Description: Musings on Ruby, Rails, and other topics by an experienced object technologist.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Rick DeNatale
Latest Posts From Talk Like A Duck

Advertisement
Shhhh! I've got a confession. I've been known to use rdebug

Today, my evil twin, Pat Mueller, posted an article alerting me to the fact that some rubyists seem to think that using a debugger is some kind of moral failing.

Pat took that belief to task, and I've got to agree.

Like all of you, my gentle readers, I'm perfect. I never make mistakes, so I never need a debugger. Well I thought that I made a mistake once, but discovered I was wrong!

Seriously, when I first encountered Ruby it was really lacking in debugger support. Although I missed a good debugger, I struggled along, and yes, I didn't miss it all that much. Why? Because a debugger has always been just one tool in my arsenal.

Most of the time I'm happy to write tests, see that the test fails, write code, make the test pass, lather, rinse and repeat. By taking small steps, I find that it usually goes rather well.

But, on the rare occasion, that fourth step poses problems, and that's when I pull out rdebug.

In fact it's usually: rdebug test/unit/someclass_test.rb although I run rails under rdebug from time to time.

Ruby IDEs like netbeans and aptana are now provide good integrated debugging. Pat mentions this, although he's not as hooked in to the ruby community as he should be, so I don't think he realizes that they are using rdebug through an ide interface wrapper.

Now using IDEs seems to be another moral failing by some luminaries estimation, but then again maybe not.

Personally, I've got nothing against a good IDE, Heck, I used to work with and on Smalltalk IDEs (VisualAge), and Java IDEs (VA/JAVA, VA MicroEdition, and Eclipse). But I've been almost as happy using VIM on Linux and now TextMate on OSX. There's even a TextMate bundle which talks to rdebug and let's you set breakpoints.

I don't use that much, but when I need it, I'm happy and unashamed.

Read: True Confesssions

Topic: Scotland On Rails Previous Topic   Next Topic Topic: Heroes Decline

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use