Ruby Development Tools Documentation - 0.9.0

Running a Ruby application
Prev | Chapter 2. Concepts | Next

## Running a Ruby application

### Starting from Ruby Resource View

The context menu of a ruby file in the Ruby Resource View has a run entry from which the file can be started in run or debug mode.

Figure 2.8. Run from context menu

### Starting from main menu

The Run main menu also offers a menu point for starting a ruby application. Which file is started is determined by the active part (marked with the blue border). This can be the editor or the Ruby Resource View for example. If the Ruby Resource View is active, the file selected in the resource tree is started. If the editor is the active part, the file in the active editor is started.

Figure 2.9. Run from main menu

### Run configuration

Every time a file is started from one of the described menu items, a run configuration is created. If the file is started a second time, this run configuration is used again. That allows to add parameters for the start, change the working directory or the interpreter to start with.

The following library paths are always added when the application is started (using the -I option of the ruby interpreter) and are not listed in the configuration dialog:

- The directory in which the started file resides

- The path of the project in which the started file resides

- The path of all dependent projects of the started file's project

Figure 2.10. Run from configuration

Prev | Up | Next
Task List | Home | Running a Test::Unit Test