Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Debugging > Test Your Knowledge

Test Your Knowledge

Quiz

  1. What’s the easiest way to present debugging information in a Rails view?

  2. Where can you find information about how quickly different aspects of a request were handled?

  3. How can you test routing from the console?

  4. How do you tell your program to support the Ruby debugger?

  5. How do you let your program continue when you exit the Ruby debugger?

Answers

  1. The debug method makes it easy to present the complete contents of an object in a mostly readable YAML representation.

  2. Rails includes a lot of timing information in its development log, which is available both in the terminal window for rails server and in the log/development.log file.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint