FaqHowToRunRubyScriptWithOptions

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:

NetBeans 6.8 and later:

When you run/debug a file for the first time, a dialog for entering options is displayed.

NetBeans 6.7 and older:

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.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo