|
Steve, You did have the source for the structure you were passing, right? Wouldn't you check that DS just like you would Factor 1, 2 and the result field entries on any old OpCode? Sometimes source is important for debugging as you indicated but as a blanket statement that it should always be there for you to see and embedded in code (such as the case with Prototypes in the Implementation source) is too cluttered for me. I'd rather compartmentalize things and then step-into it as needed. Should there be a debug-version of the C runtime library that allows you to step into it and see what you've passed in? Yes. But that isn't in-line code (all-in-one source) which was my take on the original inquiry. -Bob -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter Sent: Thursday, February 03, 2005 8:38 AM To: RPG programming on the AS400 / iSeries Subject: Re: Prototyped Procedures On Thu, 3 Feb 2005 09:25:33 -0330, RPower@xxxxxxxxxx <RPower@xxxxxxxxxx> wrote: > As someone who once worked in the softwarehouse schema, I have to disagree > with: > > 2) Consumers only need the prototypes. They have no business looking > at > > the implementation in a properly designed interface. > > If I'm debugging, I had better be able to see the source code of the > modules I'm calling. > > As a person creating a program with cutting edge technology, exactly why > would I want you to be able to see the source code? For that matter why > would you want ot be debugging it? That's what customer support is for > isn't it? I have been working with the record i/o "C" functions recently. In my testing I was getting some error messages that had no relation to what I was asking the function to do. Turns out, I was filling an option parameter with the incorrect value. But I could not use the debugger to find this bug because IBM does not provide the source code to it C runtime function library. -Steve -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.