IBM AS/400 Frozen Dessert Maker User Manual


 
Setting and Removing Breakpoints
| Line <--------------------- Source Specifications ----------------------------------------------><---- Comments ----> Src Seq
| Number ....1....+....2....+<-------- 26 - 35 -------->....4....+....5....+....6....+....7....+....8....+....9....+...10 Id Number
| S o u r c e L i s t i n g
| 1 C MOVE '123' BI_FLD1 000100
| 2 C SETON LR---- 000200
| * * * * * E N D O F S O U R C E * * * * *
|
Figure 84. Sample Section of the Listing with OPTION(*NOSRCSTMT)
| Seq <--------------------- Source Specifications ----------------------------------------------><---- Comments ----> Statement
| Number ....1....+....2....+<-------- 26 - 35 -------->....4....+....5....+....6....+....7....+....8....+....9....+...10 Number
| S o u r c e L i s t i n g
| 000100 C MOVE '123' BI_FLD1 000100
| 000200 C SETON LR---- 000200
| * * * * * E N D O F S O U R C E * * * * *
|
Figure 85. Sample Section of the Compiler Listing with OPTION(*SRCSTMT)
| In this example, a Statement View is used to set a breakpoint for the procedure
| TEST. To set a breakpoint for the module with the *NOSRCSTMT listing, type:
|
BREAK TEST/2
| To set a breakpoint for the module with the *SRCSTMT listing, type:
|
BREAK TEST/200
| In both cases, the breakpoint is set on the 'SETON LR----' line.
|
|
| Display Module Source
| Program: TEST Library: MYLIB Module: TEST
| (Source not available.)
| Bottom
| Debug . . . break TEST/2_____________________________________________________
| _______________________________________________________________________________
| 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 added to statement 2 of procedure TEST.
|
|
|
Figure 86. Setting a Breakpoint Using Statement View
| For all other debug views, the statement numbers can be used in addition to the
| program
line-numbers
in the debugger. For example, to set a breakpoint at the
| beginning of subprocedure FmtCust in the Listing View below, type:
|
BREAK 34
|Or
|
BREAK FmtCust/2600
| In both cases, the breakpoint is set on the 'P FmtCust B' line.
186 ILE RPG for AS/400 Programmer's Guide