-
-
Notifications
You must be signed in to change notification settings - Fork 537
Setting up a development environment
sfischme edited this page Sep 1, 2011
·
5 revisions
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`.
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.
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.