[RSS]

How to Run/Debug Ruby Script With Options

Question: I need to specify command line options to run/debug the script. I know how to run and debug the script, but I cannot figure out how run/debug the script with command line options.

Answer: In the Projects window, right-click the Ruby project's top node and choose Properties from the pop-up menu. Select Run in the Categories list. Put the command line options in the Arguments text box.

Those arguments are used not just for the main script (if you Run Project), but also if you run single files. They are used for both running and debugging.