Rails debugging
Firebug
This is a firefox add-on that lets you look at just about anything on the
client side of a web application. You can look at http transactions and
http headers using the "Net" tool. You can look at html, css, the DOM.
It is particularly handy for debugging javascript.
print and puts
Since we are writing ruby code after all when developing a rails application,
it is tempting to just throw in some print statements. We can indeed do that.
The question then becomes, "Where is the output?".
On my present system, since I run rails in a mongrel process, the place to
look is /u1/rails/my_app/log/mongrel.8000.log
or /u1/rails/my_app/log/mongrel.8001.log
(depending on which mongrel process handles the request).
Feedback? Questions?
Drop me a line!
Ruby on Rails notes / [email protected]