Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STRDBG And RPGIV

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have a problem debugging RPGIV programs.
STRISDBG doesn't work so I compile the RPGIV program
with the debugging view parameter set to '*SOURCE'.
I can then debug the program with STRDBG in a code view
session. The only problem is that I can't set up a break condition with more than one condition i.e.

BREAK 500 WHEN VAR1 > 10 AND VAR2 = 'A'

The debugger only accepts

BREAK 500 WHEN VAR1 > 10
or
BREAK 500 WHEN VAR2 = 'A'

Am I doing something silly or is there a way round this problem?
 
Skittle,

As far as I know, you can't do it. The only thing I can suggest is to add a boolean expression in your program before the desired breakpoint(s), such as:

Eval *In99 = (var1 > 10 and var2 = 'A')

Then set breakpoints where *In99 = '1'.

That's the best that I can come up with at the moment.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top