You are here

debug

NetBeans 6 Ruby fast debugger and Windows

If you are using Netbeans as a development environment for creating Ruby on Rails software, you should know how to debug your application. Using these out-of-the-box frameworks are really great when it comes to the speed of the development however, whenever you face strange behavior, debugging is the key.

Tip: Rails Debug Helper in a Popup

I found this nice article which proposes a ready-to-use debug popup window. All you have to do is add a simple command at the end of your application layout and a popup will show all the information regarding the request, session, response, flash variables and more.

Quick way to debug your web application.

Cheers!

Debug Rails View Helpers

Some common tasks in the development business are done no matter the programming language you use. Debugging is one of those tasks. While developing web applications I often need to debug the View layer and it is kind of a tedious job to write while loops to inspect variables values, for example.

Rails provides some interesting helper methods for your views:

  • debug
  • to_yaml

debug

This helper method will return the information about any object in YAML format, which is very human readable. To use this command, just type:

Subscribe to RSS - debug