<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">1366</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-09-04T14:46:12+01:00</created-at>
  <creator-id type="integer">1366</creator-id>
  <milestone-due-on type="datetime">2008-10-13T00:00:00+01:00</milestone-due-on>
  <milestone-id type="integer">20253</milestone-id>
  <number type="integer">5</number>
  <permalink>how-to-debug-a-rails-application</permalink>
  <priority type="integer">5</priority>
  <project-id type="integer">16213</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag nil="true"></tag>
  <title>How to debug a Rails application</title>
  <updated-at type="datetime">2008-11-03T17:09:03+00:00</updated-at>
  <user-id type="integer">7211</user-id>
  <user-name>Mike Gunderloy</user-name>
  <creator-name>Pratik</creator-name>
  <assigned-user-name>Pratik</assigned-user-name>
  <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
  <milestone-title>Guides batch 1</milestone-title>
  <original-body>* ruby-debug
* debugger options
* How to analyze stack trace
* Form helpers for debugging etc.</original-body>
  <latest-body>* ruby-debug
* debugger options
* How to analyze stack trace
* Form helpers for debugging etc.</latest-body>
  <original-body-html>&lt;div&gt;&lt;ul&gt;
&lt;li&gt;ruby-debug&lt;/li&gt;
&lt;li&gt;debugger options&lt;/li&gt;
&lt;li&gt;How to analyze stack trace&lt;/li&gt;
&lt;li&gt;Form helpers for debugging etc.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>* ruby-debug
* debugger options
* How to analyze stack trace
* View helpers for debugging etc.</body>
      <body-html>&lt;div&gt;&lt;ul&gt;
&lt;li&gt;ruby-debug&lt;/li&gt;
&lt;li&gt;debugger options&lt;/li&gt;
&lt;li&gt;How to analyze stack trace&lt;/li&gt;
&lt;li&gt;View helpers for debugging etc.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-04T19:12:05+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-04T19:12:05+01:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>&quot;Form helpers for debugging&quot;? Did you mean &quot;view helpers&quot;?</body>
      <body-html>&lt;div&gt;&lt;p&gt;&quot;Form helpers for debugging&quot;? Did you mean &quot;view helpers&quot;?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-04T17:27:00+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application-2</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-04T17:27:00+01:00</updated-at>
      <user-id type="integer">192</user-id>
      <user-name>Mislav</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Sorry, yeah. Fixed.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Sorry, yeah. Fixed.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-04T19:11:56+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application-3</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-04T19:11:56+01:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I have started working on this guide.

Cheers</body>
      <body-html>&lt;div&gt;&lt;p&gt;I have started working on this guide.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-04T19:22:57+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application-4</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-04T19:22:57+01:00</updated-at>
      <user-id type="integer">16138</user-id>
      <user-name>Emilio Tagua</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hey miloops,

* I'd lose the history section
* Before ruby-debug I'd describe what logs are and how to add stuff to logger (logger.debug/info...)
* Also before ruby-debug I would cover view helpers
* Why is non-ruby code highlighted as ruby?
* You're using &quot;NOTE&quot; admonition where &quot;TIP&quot; is more appropriate
* You're using single-char shortcuts in ruby-debug shell; full commands should be used for clarity
* &quot;Editing&quot; chapter is unclear: what is &quot;line specification&quot;? What is &quot;frame&quot;?

Regarding the example in &quot;step by step&quot;

@@@ ruby
  def find_recent_comments(limit = 10)
    debugger
    @recent_comments ||= comments.find(
      :all,
      :conditions =&gt; [&quot;created_at &gt; ?&quot;, 1.week.ago],
      :limit =&gt; limit
    )
  end
@@@

Maybe it's best to stick with one-line expressions for the sake of demonstration? Also, this method shows wrong practice to programmers because the above logic is much better achieved with a named_scope.

So, my proposal for the outline (titles are just for the rough idea):

* 1. &quot;Something went wrong&quot;. Present the readers with a hypothetical situation they all experienced: Something on the page is not as it should be, but just by viewing the page and its source doesn't reveal the cause of the problem.
* 2. &quot;View helpers for debugging&quot;. That would be only the &quot;debug&quot; method and &quot;local_assigns.has_key?(:foo)&quot; in templates (most useful in partials).
* 3. &quot;Inspecting the application log&quot; (covers logger methods)
* 4. &quot;Debugging with ruby-debug&quot;</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hey miloops,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I'd lose the history section&lt;/li&gt;
&lt;li&gt;Before ruby-debug I'd describe what logs are and how to add
stuff to logger (logger.debug/info...)&lt;/li&gt;
&lt;li&gt;Also before ruby-debug I would cover view helpers&lt;/li&gt;
&lt;li&gt;Why is non-ruby code highlighted as ruby?&lt;/li&gt;
&lt;li&gt;You're using &quot;NOTE&quot; admonition where &quot;TIP&quot; is more
appropriate&lt;/li&gt;
&lt;li&gt;You're using single-char shortcuts in ruby-debug shell; full
commands should be used for clarity&lt;/li&gt;
&lt;li&gt;&quot;Editing&quot; chapter is unclear: what is &quot;line specification&quot;?
What is &quot;frame&quot;?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regarding the example in &quot;step by step&quot;&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;
  def find_recent_comments(limit = 10)
    debugger
    @recent_comments ||= comments.find(
      :all,
      :conditions =&amp;gt; [&amp;quot;created_at &amp;gt; ?&amp;quot;, 1.week.ago],
      :limit =&amp;gt; limit
    )
  end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Maybe it's best to stick with one-line expressions for the sake
of demonstration? Also, this method shows wrong practice to
programmers because the above logic is much better achieved with a
named_scope.&lt;/p&gt;
&lt;p&gt;So, my proposal for the outline (titles are just for the rough
idea):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;ol&gt;
&lt;li&gt;&quot;Something went wrong&quot;. Present the readers with a hypothetical
situation they all experienced: Something on the page is not as it
should be, but just by viewing the page and its source doesn't
reveal the cause of the problem.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;ol&gt;
&lt;li&gt;&quot;View helpers for debugging&quot;. That would be only the &quot;debug&quot;
method and &quot;local_assigns.has_key?(:foo)&quot; in templates (most useful
in partials).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;ol&gt;
&lt;li&gt;&quot;Inspecting the application log&quot; (covers logger methods)&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;ol&gt;
&lt;li&gt;&quot;Debugging with ruby-debug&quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-05T20:54:14+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-05T20:54:19+01:00</updated-at>
      <user-id type="integer">192</user-id>
      <user-name>Mislav</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>* History is going away
* As i explained in rails-contrib non-ruby code is using [source, shell] not [source, ruby]
* Changing NOTEs for TIPs, missed that on ASCIIDocs documentation.
* Will change the commands on debugger shell to use full command names.
* The &quot;Editing&quot; episode was changed and clarified.
* That example was in many lines for the sake of reading, because Mizuho will compile it in a long line with a scrollbar, and as for the content of the example named_scope may be used for that but i don't think it matter so much for what i was trying to explain, i'm willing to change it if it's that bad.

I like the outline you propose for the guide, i just started with the ruby-debug and hadn't defined the order of the view helpers or the log debugging, but yours sounds good.

Thank you very much for the feedback,

Update coming soon!

Cheers</body>
      <body-html>&lt;div&gt;&lt;ul&gt;
&lt;li&gt;History is going away&lt;/li&gt;
&lt;li&gt;As i explained in rails-contrib non-ruby code is using [source,
shell] not [source, ruby]&lt;/li&gt;
&lt;li&gt;Changing NOTEs for TIPs, missed that on ASCIIDocs
documentation.&lt;/li&gt;
&lt;li&gt;Will change the commands on debugger shell to use full command
names.&lt;/li&gt;
&lt;li&gt;The &quot;Editing&quot; episode was changed and clarified.&lt;/li&gt;
&lt;li&gt;That example was in many lines for the sake of reading, because
Mizuho will compile it in a long line with a scrollbar, and as for
the content of the example named_scope may be used for that but i
don't think it matter so much for what i was trying to explain, i'm
willing to change it if it's that bad.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I like the outline you propose for the guide, i just started
with the ruby-debug and hadn't defined the order of the view
helpers or the log debugging, but yours sounds good.&lt;/p&gt;
&lt;p&gt;Thank you very much for the feedback,&lt;/p&gt;
&lt;p&gt;Update coming soon!&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-05T21:36:13+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-05T21:36:18+01:00</updated-at>
      <user-id type="integer">16138</user-id>
      <user-name>Emilio Tagua</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>A few comments/suggestions:

* Start with a &quot;This guide covers xxx. By referring to this guide, you will be able to:&quot; list - as I did in the Routing guide. I'd like to see us do this sort of standard intro across all the guides; it really helps readers figure out whether a particular chunk is something they should read.
* In the example for #inspect, there's a discrepancy between the code you show and the output.
* Should probably include a few words on how to get &amp; install ruby-debug.
* I would probably move the thread commands down towards the end of the ruby-debug section; I think in most cases Rails developers won't need them at the moment.</body>
      <body-html>&lt;div&gt;&lt;p&gt;A few comments/suggestions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start with a &quot;This guide covers xxx. By referring to this
guide, you will be able to:&quot; list - as I did in the Routing guide.
I'd like to see us do this sort of standard intro across all the
guides; it really helps readers figure out whether a particular
chunk is something they should read.&lt;/li&gt;
&lt;li&gt;In the example for #inspect, there's a discrepancy between the
code you show and the output.&lt;/li&gt;
&lt;li&gt;Should probably include a few words on how to get &amp;amp; install
ruby-debug.&lt;/li&gt;
&lt;li&gt;I would probably move the thread commands down towards the end
of the ruby-debug section; I think in most cases Rails developers
won't need them at the moment.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-06T02:13:06+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-06T02:13:09+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I think keeping 'threads' section is ok, considering Rails is threadsafe now. Agree with everything else Mike said. Also, local_assigns stuff is not really relevant to debugging.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I think keeping 'threads' section is ok, considering Rails is
threadsafe now. Agree with everything else Mike said. Also,
local_assigns stuff is not really relevant to debugging.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-06T03:07:14+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-06T03:07:15+01:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The guide was updated:
* Added Logger chapter.
* Fixed #inspect example (oops!).
* Added a short section on how to get ruby-debug.
* The guide intro was change in favor of Mike's suggestion, i think it's great to have a standard way too.
* I didn't change the thread section because of the reason it was created: Rails becoming threadsafe.
* A few more changes.

Thanks for the feedback,

Cheers</body>
      <body-html>&lt;div&gt;&lt;p&gt;The guide was updated: * Added Logger chapter. * Fixed #inspect
example (oops!). * Added a short section on how to get ruby-debug.
* The guide intro was change in favor of Mike's suggestion, i think
it's great to have a standard way too. * I didn't change the thread
section because of the reason it was created: Rails becoming
threadsafe. * A few more changes.&lt;/p&gt;
&lt;p&gt;Thanks for the feedback,&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-08T16:16:58+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-08T16:17:02+01:00</updated-at>
      <user-id type="integer">16138</user-id>
      <user-name>Emilio Tagua</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>More feedback on the current draft:

- In general, we should avoid having two heads directly follow one another; readers tend to find this dizzying. So for example between &quot;View Helpers for Debugging&quot; (and we should be using title case in all headings) and &quot;debug&quot; you need some text that applies to the whole section. Something like &quot;One common task is to inspect the contents of a variable. In Rails, you can do this with three methods, blah, blah, blah...&quot;
- I'd separate out to_yaml and inspect into different heads
- In the Logger chatper, I'd start the &quot;What is it?&quot; section with &quot;Rails makes use of ruby's standard logger to write log information. You can also substitute another logger such as Log4R if you wish&quot;
- In your tip about logging, italicize the variable part: +_environment_name_.log+ 
- I wonder if it's at least worth mentioning some of the log-file analysis tools and services. Things like Palmist or FiveRuns Tuneup</body>
      <body-html>&lt;div&gt;&lt;p&gt;More feedback on the current draft:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In general, we should avoid having two heads directly follow
one another; readers tend to find this dizzying. So for example
between &quot;View Helpers for Debugging&quot; (and we should be using title
case in all headings) and &quot;debug&quot; you need some text that applies
to the whole section. Something like &quot;One common task is to inspect
the contents of a variable. In Rails, you can do this with three
methods, blah, blah, blah...&quot;&lt;/li&gt;
&lt;li&gt;I'd separate out to_yaml and inspect into different heads&lt;/li&gt;
&lt;li&gt;In the Logger chatper, I'd start the &quot;What is it?&quot; section with
&quot;Rails makes use of ruby's standard logger to write log
information. You can also substitute another logger such as Log4R
if you wish&quot;&lt;/li&gt;
&lt;li&gt;In your tip about logging, italicize the variable part:
+&lt;em&gt;environment_name&lt;/em&gt;.log+&lt;/li&gt;
&lt;li&gt;I wonder if it's at least worth mentioning some of the log-file
analysis tools and services. Things like Palmist or FiveRuns
Tuneup&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-16T16:52:12+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-16T16:52:16+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I think the log file analysis tools should go to the performance guide.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I think the log file analysis tools should go to the performance
guide.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-16T16:55:00+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-16T16:55:03+01:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Guide updated (and pushed!).

Changes:

* All title have title case now as Mike suggested.
* Added changelog and link to the authors page to be consistent with other guides format.
* Logger and view helpers section changes as Mike suggested.
* Added myself to the authors page.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Guide updated (and pushed!).&lt;/p&gt;
&lt;p&gt;Changes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All title have title case now as Mike suggested.&lt;/li&gt;
&lt;li&gt;Added changelog and link to the authors page to be consistent
with other guides format.&lt;/li&gt;
&lt;li&gt;Logger and view helpers section changes as Mike suggested.&lt;/li&gt;
&lt;li&gt;Added myself to the authors page.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-16T17:42:49+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-16T17:42:52+01:00</updated-at>
      <user-id type="integer">16138</user-id>
      <user-name>Emilio Tagua</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Just letting you know that log analysis tools are being covered in the performance guide. Though if you have done any work in that regard feel free to forward it to me.  
fotoverite@gmail.com</body>
      <body-html>&lt;div&gt;&lt;p&gt;Just letting you know that log analysis tools are being covered
in the performance guide. Though if you have done any work in that
regard feel free to forward it to me. &lt;a href=&quot;mailto:fotoverite@gmail.com&quot;&gt;fotoverite@gmail.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-17T03:07:13+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-17T03:07:17+01:00</updated-at>
      <user-id type="integer">31512</user-id>
      <user-name>FotoVerite</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>&gt;&gt; 3.5. Inspecting Variables
&gt;&gt;
&gt;&gt; Any expression can be evaluated in the current context, just 
&gt;&gt; type it!

As far as I know, this doesn't work with the default settings of rdebug, you must set autoeval either manually or in your profile.</body>
      <body-html>&lt;div&gt;&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;3.5. Inspecting Variables&lt;/p&gt;
&lt;p&gt;Any expression can be evaluated in the current context, just
type it!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;As far as I know, this doesn't work with the default settings of
rdebug, you must set autoeval either manually or in your
profile.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-20T16:53:43+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-20T16:53:48+01:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Rails adds a couple of settings after initializing rdebug, &quot;autoeval =&gt; true&quot; being one of them.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Rails adds a couple of settings after initializing rdebug,
&quot;autoeval =&amp;gt; true&quot; being one of them.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-20T19:49:07+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-20T19:49:09+01:00</updated-at>
      <user-id type="integer">192</user-id>
      <user-name>Mislav</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hey Rick,

As Mislav said, Rails sets debugger to use autoeval when starting it.

@@@ ruby
def start_debugger
  begin
    require_library_or_gem 'ruby-debug'
    Debugger.start
    Debugger.settings[:autoeval] = true if Debugger.respond_to?(:settings)
    puts &quot;=&gt; Debugger enabled&quot;
  rescue Exception
    puts &quot;You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'&quot;
    exit
  end
end
@@@</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hey Rick,&lt;/p&gt;
&lt;p&gt;As Mislav said, Rails sets debugger to use autoeval when
starting it.&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;
def start_debugger
  begin
    require_library_or_gem 'ruby-debug'
    Debugger.start
    Debugger.settings[:autoeval] = true if Debugger.respond_to?(:settings)
    puts &amp;quot;=&amp;gt; Debugger enabled&amp;quot;
  rescue Exception
    puts &amp;quot;You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'&amp;quot;
    exit
  end
end
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-23T14:45:26+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-23T14:45:31+01:00</updated-at>
      <user-id type="integer">16138</user-id>
      <user-name>Emilio Tagua</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-09-30T00:09:01+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- 
:milestone: 
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-09-30T00:09:05+01:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Just committed an edit pass on this one. If anyone has more suggestions, make them soon.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Just committed an edit pass on this one. If anyone has more
suggestions, make them soon.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-20T01:28:25+01:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-10-20T01:28:29+01:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>- Guide can include a small section on debugging memory leaks and point to bleak house and valgrind ( http://blog.evanweaver.com/articles/2008/02/05/valgrind-and-ruby )

- Maybe a sections about debugging RJS ( av::base.debug_rjs = true ) and point to resources for learning firebug</body>
      <body-html>&lt;div&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Guide can include a small section on debugging memory leaks and
point to bleak house and valgrind ( &lt;a href=&quot;http://blog.evanweaver.com/articles/2008/02/05/valgrind-and-ruby&quot;&gt;http://blog.evanweaver.com/artic...&lt;/a&gt;
)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Maybe a sections about debugging RJS ( av::base.debug_rjs = true
) and point to resources for learning firebug&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-11-02T01:11:52+00:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-11-02T01:11:54+00:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>And also, it'd be nice to mention some good plugins useful for debugging.

These are the ones that I like

* Footnotes - http://github.com/drnic/rails-footnotes/tree/master
* http://github.com/ntalbott/query_trace/tree/master
* http://github.com/dan-manges/query_stats/tree/master</body>
      <body-html>&lt;div&gt;&lt;p&gt;And also, it'd be nice to mention some good plugins useful for
debugging.&lt;/p&gt;
&lt;p&gt;These are the ones that I like&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Footnotes - &lt;a href=&quot;http://github.com/drnic/rails-footnotes/tree/master&quot;&gt;http://github.com/drnic/rails-fo...&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://github.com/ntalbott/query_trace/tree/master&quot;&gt;http://github.com/ntalbott/query...&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://github.com/dan-manges/query_stats/tree/master&quot;&gt;http://github.com/dan-manges/que...&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-11-02T01:22:08+00:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-11-02T01:22:11+00:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Updates commited: added RJS, memory leaks and helpful plugins.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Updates commited: added RJS, memory leaks and helpful
plugins.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-11-03T16:00:03+00:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-11-03T16:00:06+00:00</updated-at>
      <user-id type="integer">16138</user-id>
      <user-name>Emilio Tagua</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-11-03T16:58:27+00:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>taken</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-11-03T16:58:30+00:00</updated-at>
      <user-id type="integer">1366</user-id>
      <user-name>Pratik</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">1366</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2008-11-03T17:09:00+00:00</created-at>
      <creator-id type="integer">1366</creator-id>
      <diffable-attributes type="yaml">--- 
:state: taken
</diffable-attributes>
      <milestone-id type="integer">20253</milestone-id>
      <number type="integer">5</number>
      <permalink>how-to-debug-a-rails-application</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">16213</project-id>
      <state>resolved</state>
      <tag nil="true"></tag>
      <title>How to debug a Rails application</title>
      <updated-at type="datetime">2008-11-03T17:09:03+00:00</updated-at>
      <user-id type="integer">7211</user-id>
      <user-name>Mike Gunderloy</user-name>
      <creator-name>Pratik</creator-name>
      <assigned-user-name>Pratik</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/16213/tickets/5</url>
      <milestone-title>Guides batch 1</milestone-title>
    </version>
  </versions>
</ticket>
