ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Statements don't line up when debugging CLLE program with INCLUDE statement using RDi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Statements don't line up when debugging CLLE program with INCLUDE statement using RDi

    We like using the nifty new INCLUDE statement in CLLE programs, like so:

    PGM
    /* general header stuff */
    INCLUDE SRCMBR(HEADER) SRCFILE(QINCCLSRC)
    /* variable declarations */
    DCL VAR(&ENTRY) TYPE(*CHAR) LEN(100)
    DCL VAR(&DATE) TYPE(*CHAR) LEN(6)
    DCL VAR(&TIME) TYPE(*CHAR) LEN(6)
    /* general error handling */
    INCLUDE SRCMBR(ERRORH) SRCFILE(QINCCLSRC)
    /* the rest of the program */

    The problem is that when we debug a program like this using RDi, the statements don't match up.

    Apparently the debugger jumps to the line it would be on if the INCLUDE source files were expanded.

    This is analogous to COPY preprocessor statements in RPG, but the debugger handles those fine, at least as long as I'm not on a line in the COPY source.

    Anyone know how to get around this problem in CLLE?

    Thanks.
Working...
X