Thanks Denis - it is just RPGLE, no SQL. I've had the fun with SQLRPLGE programs and debug as well, but this one should be simpler.

When I started debug, it showed the correct source, then I pressed F10 to get back to the command line and invoked the program.  The first place it broke was not only not *inzsr, it was about 200 statements into the program - not even close to the first statement.

On 8/8/2018 1:41 PM, Denis Robitaille wrote:
Hello,

Here a few idea:

*INZSR in invoked only on the first call to a program if the previous call is not ended with *INLR, so it might be normal behaviour.

If the program is SQLRPG, there is some sort of pre process that goes on during compile (transform the SQL, you can see this in the compile listing). I have seen cases where this screwed up the debug view.

Hope this help


Denis Robitaille
Chef de service TI – Solution d’entreprise
Infrastructure et opérations

CASCADES CENTRE DES TECHNOLOGIES
412 Marie Victorin
Kingsey falls(Québec) Canada J0A 1B0
Tél : 819 363 6100 Poste :52130
Cell : 819 352 9362


-----Message d'origine-----
De : RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> De la part de Peter Dow
Envoyé : 8 août 2018 16:23
À : RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Objet : STRDBG source not matching using *LIST view

This is on v7r3, ptf group SF99876.  I'm using STRDBG on PgmA, which calls PgmB.

Both PgmA and PgmB are RPGLE programs that have been compiled with DBGVIEW(*ALL), no optimization.

Using F10 to step through PgmA when it calls PgmB, the debugger switches to PgmB and shows a statement in the middle of the program, not the first statement in the *INZSR subroutine.

I used F15 to switch between all 3 available listings (source, list,
copy) and they all show the same statement.

Call stack shows I'm in the correct programs.

The usual problem when I've encountered this before is I'm not in the right program, or the program pointing to the wrong source, or optimization has been done.  None of these are the current situation.

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx> pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx> /
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2019 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].