Re: Debugger & Arguments
Posted in 1995
>From: shemminga@cix.compulink.co.uk ("Stuart Hemming") >Subject: Re: Debugger & Arguments >Date: Thu, 26 Jan 1995 13:00:49 GMT >X-Informix-List-Id: <news.11102> >> } 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 [omitted] >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. Actually, the third line is correct behaviour -- it just shows that you are misinterpreting what RUN with no arguments does. In common with most C debuggers (dbx, sdb for example), the debugger assumes that if you supply any arguments to the run command, then when you next type run and use no arguments at all, the program should be rerun with the same arguments as last time. This does mean that there is no way of re-running the program with 0 arguments apart from exiting the debugger. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>