× 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.



I can attest to the fact that if you compile with DBGVIEW(*SOURCE) then
change the source, then debug the program, what you see is the changed
source, and some weird stuff happens.

Chris

-----Original Message-----
From: Scott Klement [mailto:rpg400-l@xxxxxxxxxxxxxxxx] 
Sent: Thursday, July 15, 2004 3:45 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Get source from object?


Hi Dan,

> Assuming RPG-IV, if you compiled with DBGVIEW(*SOURCE) or DBGVIEW(*ALL)
> then, yes, it's in the object.

Forgive me, but do you mean DBGVIEW(*LIST)?  I thought DBGVIEW(*SOURCE)
meant that the debugger referred back to the actual source member?

The following text appears in the help for the CRTBNDRPG command:

 *SOURCE
     Generates the source view for debugging the compiled program object
     This view is not available if the root source member is a DDM file.
     Also, if changes are made to any source members after the compile
     and before attempting to debug the program, the views for those
     source members may not be usable.

It doesn't directly say that *SOURCE refers to the actual source member,
but it does imply that if you change the source member, what you see in
the debugger may not be relevant -- so to me that implies that it's using
the actual source.

Obviously, if that source were deleted, DBGVIEW(*SOURCE) wouldn't help --
so I'm guessing that you actually meant DBGVIEW(*LIST) -- or that I'm just
totally wrong.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
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 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.