× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Phil,

I hear what you are saying and actually can see how convenient it would be
if we could view the value returned by some (or maybe all) BIFs.

However, we need to remember that BIFs are still procedure (function)
calls.
Some of them (like %FOUND) simply return a value (sort of like indicators)
while others actually perform somewhat nontrivial computations.
In general, debuggers don't allow displaying a return from a
procedure/subroutine
calls directly. A simple workaround is to assign the return value to a
variable, which
is exactly what you wanted to hear - I am sure :-)

While I don't think that your request is unreasonable, at this point I just
don't see
such changes occurring in the RPG compiler and underlying debug support.

Regards,
Vadim Berestetsky
Distributed Debugger Development
Phone (905) 413-4403; T/L  969-4403
Internet:  berestet@ca.ibm.com




-Please respond to code400-l@midrange.com

Sent by:  code400-l-admin@midrange.com


To:   code400-l@midrange.com
cc:
Subject:  Debugging & file I/O BIF's like %EOF, %FOUND


I posted this on the RPG-L but I think this is where
the Distributed Debugger folks lurk so I'm cross
posting it.

--- Phil Groschwitz <sublime78ska@yahoo.com> wrote:
> I would be happy if I could drag the file I/O bif
> into
> the Monitors pane in the distributed debugger.  I
> would also like to set a breakpoint on a CHAIN, for
> example, where %FOUND = '1'.
>
> I don't want to change it's value but I would like
> to
> watch it, and to set a conditional breakpoint on it.
>
> Whether it's a big deal or not to code I don't know
> but I don't think it's unreasonable to want it, or
> to
> see the value it would add to the debugger.
>
> Phil
>
> >
> > On Tue, 1 Jan 2002, Douglas Handy wrote:
> > >
> > > It would be great to be able to give it any
> > function or procedure name and have
> > > it display the return value, not just certain
> > BIFs...
> > >
>

Phil



__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.










As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.