This page gives an overview of how to quickly start debugging with the Aptana Rails IDE.
Introduction
Once you have your Rails plug-in configured, you only need to perform a couple of additional steps to get started with debugging your Rails projects. These steps are outlined in the instructions below.
Instructions
To get started with debugging a Rails project:
- Switch to the Rails perspective, if you are not already using it.
- Use the Ruby Gems View to install the ruby-debug-ide gem. See the Ruby Gems View Help topic to learn how to install and manage gems from the Ruby Gems View.
- Make sure that you have your Ruby interpreter set up. See Step 2 in Configuring your RadRails setup to learn how to configure your Ruby interpreter.
- Make sure that your preferences are set up for debugging:
- From the Windows menu, select Preferences... to open a Preferences window.
- On the tree on the left, expand Ruby and select Debugger.
- On the Debugger screen, check the Use ruby-debug library preference.
- Click OK.
- Launch your server under debug mode.
- In the Servers View, select the server that you want to launch.
- Click the Debug button .
Aptana Rails runs your server in debug mode.
You can switch to the Debug perspective (In the upper right corner of your workbench, click the Open Perspective button > Other... > Debug) to access debugging related Views and more debugging tools.