You may run a Ruby program in the integrated Ruby Console or in a command window. Ruby programs are debugged using the Ruby editor and Console. You can also Build a program to check the source code for syntax errors.
1) In The Ruby Console
To run a program without debugging inside the Visual Studio environment...
Press CTRL+F5 or CTRL+2.
Or select the Ruby menu, Ruby Run.
Or select Debug menu, Start without debugging.
2) In A Command Window
To run a program without debugging inside a command window...
Or select Ruby menu, Ruby command.
To run a program with debugging...
- Press F5.
Or select Debug menu, Start Debugging.
Build To Check For Syntax Errors
Build Solution and Rebuild Solution examine the files in a project and report on any syntax errors. Unlike the Build options for compiled languages, Ruby In Steel's Build/Rebuild does not create an executable file.
To Build a Solution, select Build, Build Solution.
To Rebuild a Solution, select Build, Rebuild Solution.
You can view the progress of the error checking in the Output window. Errors are reported in the Error List. Build only checks those files which failed a previous Build or have been changed since a previous Build; Rebuild checks all files.
As part of the Build process, Steel creates a \SyntaxCheck directory containing a record of all the documents built (these are 0-length files). If you wish, you can remove this directory by selecting Clean Solution from the Build menu. Once this is done, the next time you perform a Build, all the files in the solution will be checked (that is, Build will perform the same action as Rebuild).
Setting The Build Action Property
Build and Rebuild only check those files with a BuildAction property. The BuildAction of Ruby (.rb) files is, by default, Ruby; the BuildAction of Rails template (.rhtml) files defaults to EmbeddedRuby. If you want to exclude a file from the syntax checking performed by Build, select that file in the Solution Explorer and, in the Properties window, change its BuildAction property to None.