Undocumented Debugger Function
August 30, 2006 Hey, Ted
Here’s a tip for those readers who, like me, still have to use the full-screen, green-screen debugger. I accidentally discovered that RPG supports a debugging option that is not documented in either the help text or the RPG programmer’s guide. If you want to break a program or procedure when a variable has a certain value, you can use a conditional breakpoint. In the following example, the program breaks at statement 12 if variable STATE has the value TX. break 12 when state = 'TX' Suppose you want to stop when part of a field contains a certain value? The |