If you specify over on the STEP debug command, calls to procedures and functions count as single statements. This is the default STEP mode. Stepping through four statements of a program could result in running 20 statements if one of the four is a call to a procedure with 16 statements. You can start the step-over function by using:
Example:
This example shows you how to use F10 (Step) to step over one statement at a time in your program.
+--------------------------------------------------------------------------------+
| Display Module Source |
| Program: T1520PG1 Library: MYLIB Module: T1520IC2 |
| 47 if (j<0) return(0); |
| 48 if (hold_formatted_cost[i] == '$') |
| 49 { |
| 50 formatted_cost[j] = hold_formatted_cost[i]; |
| 51 break; |
| 52 } |
| 53 if (i<16 &&; !((i-2)%3)) |
| 54 { |
| 55 formatted_cost[j] = ','; |
| 56 --j; |
| 57 } |
| 58 formatted_cost[j] = hold_formatted_cost[i]; |
| 59 --j; |
| 60 } |
| 61 |
| Debug . . . ___________________________________________________________ |
| ________________________________________________________________________ |
| F3=End program F6=Add/Clear breakpoint F10=Step F11=Display variable |
| F12=Resume F17=Watch variable F18=Work with watch F24=More keys |
| Breakpoint at line 50. |
+--------------------------------------------------------------------------------+
If the third statement is a call to a function, the first two statements run, the function is called and returns, and the last two statements run.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.