How to setup Komodo IDE for Ruby
Windows
See below for the steps to install and perform some basic configuration of Komodo IDE in order to be able to execute Ruby and therefore, WATIR code.
1. Install Ruby
2. Install Watir
3. Download and install (all default installation options) the latest stable version of Komodo IDE from http://www.activestate.com/komodo-ide/downloads: 
| Please note that Komodo IDE is not free, but you can download an evaluation copy (currently for 21 days). |
4. Now let's do some basic configuration to make sure we link Komodo IDE with our Ruby installation.
Launch Komodo IDE, and go Edit > Preferences. Click on Interactive Shell section, and select Ruby from the drop-down:

Then go to Languages > Ruby section. Make sure that Komodo IDE was able to automatically find Ruby interpreter.
If not, click Browse button, and locate the ruby.exe file, so this section will look similar to this:

As the last step, go to Debugger > Connection section, and make sure that you've the selected "a system-provided port" option:

5. Now close Preferences window, and return to the main application window.
Select Ruby interactive shell option from Interactive Shell menu (or just click on it - we've chosen Ruby shell by default in the steps above).
Make sure that Ruby Shell displays the correct version of Ruby that you have installed:

6. As the final check to make sure everything is operating smoothly, open a sample Ruby file, and try to use Debugger.
Set a couple of breakpoints, and run the script by going Debug > Go:

If that worked, you should be all set to start writing some awesome WATIR scripts using Komodo IDE!
If you are having issues with running the debugger, make sure you have the following gems installed:
|