printing debug information in development mode in Rails
logger = Logger.new(STDOUT) logger.debug ("title: #{@attr.get('title')}") logger.debug("small_image: #{@images.search_and_convert('smallimage')}")
TextSnippets > deckard > debugging
2760 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
logger = Logger.new(STDOUT) logger.debug ("title: #{@attr.get('title')}") logger.debug("small_image: #{@images.search_and_convert('smallimage')}")
debug(@instance_var.pretty_inspect)
mysql_config --socket sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock