‑‑application_args
In this section:
Syntax
‑‑application_args="arg0 arg1 ..."Parameters
argA command line argument.
For use with
cspybat
Description
Use this option to pass command line arguments to the debugged application. These variables must be defined in the application:
/* __argc, the number of arguments in __argv. */ __no_init __root int __argc; /* __argv, an array of pointers to the arguments (strings); must be large enough to fit the number of arguments.*/ __no_init __root const char * __argv[MAX_ARGS]; /* __argvbuf, a storage area for __argv; must be large enough to hold all command line arguments. */ __no_init __root char __argvbuf[MAX_ARG_SIZE];
Example
‑‑application_args="‑‑logfile log.txt ‑‑verbose"
Caution
This option is not available in the IDE. However, command line arguments can be passed to the debugged application from the Project>Options>Debugger>Extra Options page using the /args option, see Extra Options.