IBM AS/400 Setting and Removing Breakpoints, Sample Section of the Listing with OPTION*NOSRCSTMT

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 210
Image 210
Figure 84. Sample Section of the Listing with OPTION(*NOSRCSTMT)

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

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

breakpointSETONis

set

onLR----the'

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 add

programline-numbersin the debugger. For example, to set a breakpoint a beginning of subprocedure FmtCust in the Listing View below, type:

BREAK 34

Or

BREAK FmtCust/2600

In both cases, the breakpointP FmtCuis set on theB' line'.

186 ILE RPG for AS/400 Programmer's Guide

Page 210
Image 210
IBM AS/400 manual Setting and Removing Breakpoints, Sample Section of the Listing with OPTION*NOSRCSTMT, NOSRCSTMT listing