Provides a set of methods for making it easier to locate problems.

Methods
Public Instance methods
debug(object)

Returns a <pre>-tag set with the object dumped by YAML. Very readable way to inspect an object.

    # File vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb, line 6
 6:       def debug(object)
 7:         begin
 8:           Marshal::dump(object)
 9:           "<pre class='debug_dump'>#{h(object.to_yaml).gsub("  ", "&nbsp; ")}</pre>"
10:         rescue Exception => e  # errors from Marshal or YAML
11:           # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback
12:           "<code class='debug_dump'>#{h(object.inspect)}</code>"
13:         end
14:       end