Skip to content

Setting up a development environment

sfischme edited this page Sep 1, 2011 · 5 revisions

Basics

The development environment is similar to the production environment. You might want to choose to use different database connections when you test new code. For this use the development section in `config/database.yml`.

Setting up an Development Environment on Ubuntu 11.04

First follow the steps to setup a minimal installation on Ubuntu: Ubuntu 11.04 minimal setup. Afterwards you can then install debugging support and start the server in debugging mode.

Debugging

Install debugger support with:

sudo gem install ruby-debug

Start server with

server --debugger

Simply insert the debugger statement in the Ruby code to invoke a debugger shell with the current context.

Clone this wiki locally