Files
eiffel-org/documentation/trunk/eiffelstudio/eiffelstudio-how-tos/running-and-debugging/setting-command-line-arguments.wiki
2016-04-06 13:44:35 +00:00

16 lines
942 B
Plaintext

[[Property:title|Setting the command line arguments]]
[[Property:weight|6]]
[[Property:uuid|4aed0363-4aa9-89ce-aaa7-6dce00410afb]]
To debug a program that uses command line parameters, it is possible to have the debugger call the generated program with certain command line arguments automatically.
To change the command line arguments used when debugging:
* Open the menu entry <code>Execution > Execution Parameters ..</code>
* In this dialog, you can change the current arguments, working directory, and add, change or remove environment variables.
* Click '''OK'''.
{{tip|To get the command line arguments in a program, it is possible to either define the root feature as taking an array of [[ref:libraries/base/reference/string_8_chart|STRING_8]] objects, or to use the [[ref:libraries/base/reference/arguments_chart|ARGUMENTS]] class, which provides a lot of functionality linked with command line arguments. }}