Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Kire Prostizenovski could not pass command-line parameters to an Informix 4GL program under fgldb, though fglgo accepted them. Mehdi Afshar suggested the QueriX 4GL compilers. Steven L Cooper offered a workaround using a command file (fgldb -f idb.4db program.4gi). Jonathan Leffler explained that parameters belong on the debugger's RUN command, as in other Unix debuggers.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Kire Prostizenovski — — source: Informix-list mailing list archive (1991-1998)
Hi,
I have a problem de-bugging a 4GL program which requires command line
parameters. The debugger (fgldb) doesn't seem to like these command line
parameters.
For example
fglgo <progname> <parameter1> <parameter2> works OK
but;
fgldb <progname> <parameter1> <parameter2> doesn't work 8^(
Thanks,
Kire
↪ replying to Kire Prostizenovski
Mehdi Afshar — — source: Informix-list mailing list archive (1991-1998)
Hi;
QueriX 4GL Compilers provide full Source Level Debugging facilities, allowing
you to step trough the 4GL lines, and intermediate C code, and many other
facilities, depending on what would be your favorite debugger on your machine
(dbx, gdb ... etc.)
For more information please go to http://www.querix.com/
Kire Prostizenovski wrote:
> Hi,
>
> I have a problem de-bugging a 4GL program which requires command line
> parameters. The debugger (fgldb) doesn't seem to like these command line
> parameters.
>
> For example
> fglgo <progname> <parameter1> <parameter2> works OK
> but;
> fgldb <progname> <parameter1> <parameter2> doesn't work 8^(
>
> Thanks,
>
> Kire
↪ replying to Kire Prostizenovski
Steven L Cooper — — source: Informix-list mailing list archive (1991-1998)
Kire Prostizenovski wrote in message ...
>Hi,
>I have a problem de-bugging a 4GL program which requires command line
>parameters. The debugger (fgldb) doesn't seem to like these command line
>parameters.
>
>For example
> fglgo <progname> <parameter1> <parameter2> works OK
>but;
> fgldb <progname> <parameter1> <parameter2> doesn't work 8^(
True, but here is the way "around" the problem...
Create a file named idb.4db in the current directory
Here is the script I use...
echo "alias c = co" >idb.4db
echo "b main" >>idb.4db
if [ ! -z "$1" ]
then
echo "b $1" >>idb.4db
fi
echo "run -d testdb" >>idb.4db
fgldb
Steve
>
>Thanks,
>
>Kire
↪ replying to Steven L Cooper
Steven L Cooper — — source: Informix-list mailing list archive (1991-1998)
OOPS, forgot the command line option...
------->>>>> fgldb -f idb.4db program.4gi
Steve
>True, but here is the way "around" the problem...
>Create a file named idb.4db in the current directory
>
>Here is the script I use...
>echo "alias c = co" >idb.4db
>echo "b main" >>idb.4db
>if [ ! -z "$1" ]
>then
> echo "b $1" >>idb.4db
>fi
>echo "run -d testdb" >>idb.4db
>fgldb -f idb.4db
>
>Steve
>
>>
>>Thanks,
>>
>>Kire
>
>
>
↪ replying to Mehdi Afshar
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
Mehdi Afshar wrote:
> QueriX 4GL Compilers provide full Source Level Debugging [...]
>
> Kire Prostizenovski wrote:
> > I have a problem de-bugging a 4GL program which requires command
> > line parameters. The debugger (fgldb) doesn't seem to like these
> > command line parameters.
> >
> > For example
> > fglgo <progname> <parameter1> <parameter2> works OK
> > but;
> > fgldb <progname> <parameter1> <parameter2> doesn't work 8^(
Because it is not supposed to work. If you want to supply parameters
to the program, you specify them in the RUN command inside the
debugger, not on the command line.
RUN <parameter1> <parameter2>
This is consistent with most of Unix debuggers -- adb, sdb, gdb, dbx,
etc. (No, the last one is an abbreviation of etcetera :-).
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN
#include <disclaimer.h>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.