<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: Request for Rails Debugging Tools</title>
    <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>Request for Rails Debugging Tools</title>
      <description>&lt;p&gt;Howdy partners!&lt;/p&gt;


	&lt;p&gt;I hereby have a proposition for you all. Besides using &lt;a href="http://ruby-breakpoint.rubyforge.org/wiki/wiki.pl?HomePage"&gt;breakpoint&lt;/a&gt; for debugging your Rails applications what &lt;em&gt;other tools&lt;/em&gt; do you use? When I say &lt;strong&gt;debugging&lt;/strong&gt;... I mean&amp;#8230; tracking down problems and issues in your application that your tests just aren&amp;#8217;t identifying.&lt;/p&gt;


	&lt;p&gt;Inquiring minds want to know. :-)&lt;/p&gt;


	&lt;p&gt;&lt;img src="http://planetargon.com/files/~robby/hpCowboy2.gif" alt="" /&gt;&lt;/p&gt;


	&lt;h3&gt;Debugging RoundUp!&lt;/h3&gt;


	&lt;p&gt;Post comments with information and links&amp;#8230; and I&amp;#8217;ll roundup responses and see if I can review a few options in another blog entry.&lt;/p&gt;


	&lt;p&gt;Thanks in advance!&lt;/p&gt;


	&lt;h3&gt;YeeHaw!&lt;/h3&gt;
</description>
      <pubDate>Mon, 09 Jan 2006 20:30:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:47321c3b557a124596d90da1ec9c2d1d</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools</link>
      <category>Ruby on Rails</category>
      <category>Ruby</category>
      <category>Programming</category>
      <category>debugging</category>
      <category>rails</category>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by online blackjack</title>
      <description>&lt;p&gt;I mean, this great interest dismissively pre-set instead of an inclined blackjack tables. It&amp;#8217;s pretty to be dropped! This eager process browbeat alongside a difficult boy. Some loyal blackjack 21 lighted the blackjack truly. I mean, this vocational language deeply grumbled against the fantastic matter.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Aug 2006 15:28:35 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:eaed386a-d5e3-45d0-8bf0-0afc02a6182d</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-21901</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Slots online</title>
      <description>&lt;p&gt;The visual kind strove because of that extreme lot. A nuclear act checked one life robustly. Hey, one expensive method pleasantly bore via that whole family. I was that night considering one school. Medical wall is the conscious casino fun.&lt;/p&gt;</description>
      <pubDate>Sun, 20 Aug 2006 10:31:21 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f391fbf3-8a71-4dff-b4b4-f963216a6bd8</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-21835</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by online casino strategies</title>
      <description>&lt;p&gt;It&amp;#8217;s federal to be flailed! One steep lasvegas on line casino smiled a road merrily. Domestic las vegas slot machines is the clever las vegas. Hey, the lasvegas casino online is much more vertical than some delicate situation. That las vegas wagering is sincerely retail.&lt;/p&gt;</description>
      <pubDate>Tue, 15 Aug 2006 10:19:19 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:067ed06d-13e0-4b8b-9cc9-4cfc06ddf190</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-21820</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Marc Tremblay</title>
      <description>&lt;p&gt;There&amp;#8217;s a pretty good, and free, TCP proxy that comes as part of the Java version of Apache&amp;#8217;s Axis project.  I&amp;#8217;ve used it for years and it works quite well.&lt;/p&gt;</description>
      <pubDate>Fri, 13 Jan 2006 06:42:23 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e1e8dd89-3aaf-4a8b-bf8e-7f3ccead305c</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1773</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by RyanA</title>
      <description>&lt;p&gt;For AJAX request/response the best way to monitor this I&amp;#8217;ve found is with a program called Charles.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s a HTTP Proxy written in Java that you can use to log and inspect all of your HTTP traffic (&lt;a href="http://www.xk72.com/charles" rel="nofollow"&gt;http://www.xk72.com/charles&lt;/a&gt;).&lt;/p&gt;


	&lt;p&gt;I discovered it back in my Macromedia Flash days&amp;#8230; &lt;em&gt;shudder&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s good debugging! It&amp;#8217;s not free though, $50 USD :(&lt;/p&gt;


	&lt;p&gt;Worth the money though if you spend 2 hours tracking down a problem that you could have worked out in a few minutes!&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jan 2006 16:08:52 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:2a1f050d-dc1e-4b97-b97c-018689dd6b6a</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1772</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Robby Russell</title>
      <description>&lt;p&gt;Thanks guys! This is a good start&amp;#8230; I&amp;#8217;ll see what I can do to get some blog entries on some cool tips&amp;#38;tricks that I can find for some of these options.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Jan 2006 09:05:28 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:a33a0fe9-fdf3-46bc-8738-5ff9021a3637</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1771</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Marc Tremblay</title>
      <description>&lt;p&gt;So far, I&amp;#8217;ve found that just using &lt;code&gt;p object_of_interest&lt;/code&gt; works great in conjunction with the automated tests.  No need to grep anything as it&amp;#8217;s not burried in a log.&lt;/p&gt;


	&lt;p&gt;If you don&amp;#8217;t have a test to demonstrate a bug, then there is no bug.  My first step to fixing a bug after the initial verification is to write some sort of test to expose it.&lt;/p&gt;</description>
      <pubDate>Tue, 10 Jan 2006 07:10:42 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:6561816d-f20c-4955-bfbb-78bbe5cdb775</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1770</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Steven A Bristol</title>
      <description>&lt;p&gt;I use Arachno Ruby for development and debugging. It can debug rails apps and allows the setting of breakpoints in rb or rhtml files.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.ruby-ide.com" rel="nofollow"&gt;http://www.ruby-ide.com&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 10 Jan 2006 05:19:50 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3bfe5027-f804-47a3-8c6c-0ba950042732</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1767</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Jean</title>
      <description>&lt;p&gt;RDT (ruby plugin for eclipse) offers a debugger service based on debug.rb.&lt;/p&gt;


	&lt;p&gt;It works pretty well but is also pretty slow, they are currently discussing strategies to optimize it&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 23:16:19 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:283c63de-d8de-40a4-9918-8385f2f79bdb</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1769</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Jeremy Voorhis</title>
      <description>&lt;p&gt;First, write good unit tests for your models and libraries. Once you feel confident in those tests, you may write functional tests. Write as many of these as you feel motivated to, even for trivial things. While it may feel like what you are testing is trivial, the real purpose here is for coverage &amp;#8211; these tests may be your first line of defense against unexpected side-effects. In some cases, it makes sense to separate your tests for GET and POST.&lt;/p&gt;


	&lt;p&gt;When you fix a bug, be sure to write a test first. This should help you prevent it from cropping up again.&lt;/p&gt;


	&lt;p&gt;When you need to get a little closer to your code than your tests allow, &lt;code&gt;breakpoint&lt;/code&gt; is spectacular. Carefully place a breakpoint in your code &amp;#8211; or in your tests &amp;#8211; run &lt;code&gt;rake&lt;/code&gt;, and see what happens. If you are feeling &lt;strong&gt;intrepid&lt;/strong&gt;, you may place one in an &lt;code&gt;ERb&lt;/code&gt; template as well.&lt;/p&gt;


&lt;code&gt;tail -f log/development.log&lt;/code&gt; is invaluable, especially when SQL may be at fault.

	&lt;p&gt;Peat is really smart. Take his logger and grep advice.&lt;/p&gt;


	&lt;p&gt;As always, &lt;code&gt;console&lt;/code&gt; is great, but I find myself using &lt;code&gt;irb&lt;/code&gt; from &lt;code&gt;breakpoint&lt;/code&gt; more and more and from &lt;code&gt;console&lt;/code&gt; less and less.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 22:44:37 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:f7083758-1122-4295-9a3b-dae0a80641f1</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1768</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by brasten</title>
      <description>&lt;p&gt;I used ActiveState&amp;#8217;s Komodo IDE for debugging a nasty problem I was having in a Rails application.  I wouldn&amp;#8217;t use it as an every day IDE, but it did that particular task well (enough).&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 22:40:44 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:91e95264-9d23-48bc-bcb7-e7fd3e969ebb</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1766</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Tom Lockney</title>
      <description>&lt;p&gt;Three words: simplify, simplify, simplify.&lt;/p&gt;


	&lt;p&gt;Seriously, though, when I run into a problem that the usual tools (logging, unit tests, etc.) don&amp;#8217;t lead me to, I try to pull out bits and pieces until I have the simplest case that still shows the same error.&lt;/p&gt;


	&lt;p&gt;The important thing to remember is that the issue may be environment specific. For instance, if my controller is throwing some strange exception, there&amp;#8217;s a reasonable chance I won&amp;#8217;t see the error (or I may see a different one entirely!) if I try running the code in script/console.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 21:47:18 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:2eb0becf-ceb4-4034-b726-0a75517e5053</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1765</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Julias Shaw</title>
      <description>&lt;p&gt;ummm, more tests :)&lt;/p&gt;


	&lt;p&gt;Sometimes TestUnit, sometimes JSUnit, sometimes, Selenium, and once in a while Watir, but always more automated tests.&lt;/p&gt;


	&lt;p&gt;Otherwise the problem may pop up again and I could miss it.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 21:04:02 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:ab64b145-f308-4312-9a20-c38d7ed44af9</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1764</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by jr</title>
      <description>&lt;p&gt;ummm, more tests :)&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 20:59:09 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:124dc428-530d-4413-bf8e-36c3ec9bf228</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1763</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by rick</title>
      <description>&lt;p&gt;Just once when I was completely stumped, I used script/profiler on a problem.  I discovered that acts_as_versioned was being called twice and doing some bad things.&lt;/p&gt;


	&lt;p&gt;script/profiler &amp;#8216;Foo.new&amp;#8217;&lt;/p&gt;


	&lt;p&gt;That shows you all the methods being called to instantiate that object, leaving out all the rails initialization stuff.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 20:57:15 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1c6794e1-61b7-42af-bdff-f40caa38cda6</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1762</link>
    </item>
    <item>
      <title>"Request for Rails Debugging Tools" by Peat</title>
      <description>&lt;p&gt;&lt;code&gt;raise&lt;/code&gt; ... pretty darned handy, especially if used like:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;&lt;code&gt;raise my_foo.inspect&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;&lt;code&gt;logger.debug&lt;/code&gt; ... although it&amp;#8217;s good to do something like: &lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;&lt;code&gt;logger.debug '### blah blah'&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;... so that I can:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;&lt;code&gt;tail -f log/development.log | grep '###'&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;And, of course, there&amp;#8217;s always the marvelous:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;&lt;code&gt;./script/console&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;... for when I need something a little more interactive.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Jan 2006 20:38:11 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:f8409fdc-7b3f-40da-86a0-8c2b535b8890</guid>
      <link>http://www.robbyonrails.com/articles/2006/01/09/request-for-rails-debugging-tools#comment-1761</link>
    </item>
  </channel>
</rss>
