Re: Debugger & Arguments
Posted in 1995
From Stuart Hemming: * * > } Can anyone suggest a way to run a .4gl program throught the Informix * > debugger * > } if the program is executed with command line arguments? * > * > when in the debugger type run -c argument1 -d argument2 -e argument3 * * But with 4.10.UC2 this program (as an example) * * DATABASE mydb * * MAIN * DEFINE i INT * * LET i = NUM_ARGS() * DISPLAY i * END MAIN * * will, if run within the debugger in given sequence, produce: * * COMMAND OUTPUT * run 0 CORRECT * run a b c 3 CORRECT * run 3 WRONG * * If I exit from the debugger and "run" again the I get 0. Here is some text from the I-4GL Interactive Debugger for DOS manual Part No. 000-7155 July 1988. RUN Overview Use RUN to start or restart execution of a 4GL program during a debugging session. Syntax RUN [arg [arg...]] Explanation RUN is a required keyword arg is an argument to the program. Notes. 1. If multiple arguments are used, seperate each one with spaces. 2. If you execute RUN more than once within the same debugging session, the same arguments are reused. You can change the arguments by specifying new ones when you execute RUN. << Rest omitted >> #2 in the above text explains it all. Hope this clears up everything. Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) De Colores - Emmaus OC-13 | Fax: 714.771.3028 | \\`-'/ #include <disclaimer.h> SURF'S UP \\_/