IBM AS/400 manual Setting an, Breakpoint

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 203
Image 203

 

 

 

 

 

 

 

 

Setting

and

Removing

Breakpoints

 

 

 

display.

A

list

of

options

appear

which

allow

you

to

set

or

remove

you

select

4 (Clear), a job breakpoint

is

removed

from the

line.

An alternate

method

of

setting

and

removing

unconditional

job

breakpoints

the

BREAK

and CLEAR

debug

commands.

To set an unconditional job

breakpo

using

the

BREAK

debug

command,

type:

 

 

 

 

 

 

 

BREAK line-number

on the debug command line. Thelinevariable-numberis the line number in the currently displayed view of the module object on which you want to point.

To remove an unconditional job breakpoint using the CLEAR debug command, type:

CLEAR line-number

on the debug command line. Thelinevariable-numberis the line number in the currently displayed view of the module object from which you want t breakpoint. When a job breakpoint is cleared, it is also cleared f

Example

of

Setting an

Unconditional

Job

Breakpoint

 

 

 

 

In this example you set an

unconditional

job

breakpoint

using F6 (Add/

point). The breakpoint is to

be

set on

the

first

runnable Calculation

that

the

various

fields and

data structures

can

be

displayed.

1.To work with a moduleDSPMODSRCtype and press Enter. The Display Module Source display is shown.

2. If

you

want

to

set

the

job

breakpoint

in

the

module

shown,

cont

If

you

want

to set a job breakpoint in

a

different module,

typ

DISPLAY MODULE module-name

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

on

the debug

command

line modulewhere-name

is

the

name

 

of

the

module

 

that

you

want

to

display.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. To

set

an

unconditional

breakpoint

on

the

first

 

Calculation

specific

the

cursor

on

line

88.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4. Press

F6

(Add/Clear

breakpoint).

If

there

is

no

 

breakpoint

on

the

an

unconditional

breakpoint is

set

 

on

that

line,

as

shown

in

Figure 8

page 180.

If

there

is

a

breakpoint

on

the

line,

it

is

removed.

Note:

 

Because

we want the breakpointfirstCalculationthe

 

specification,

 

 

 

we

could

have placed the cursor on any line before the st

 

 

culation

specifications

and

the

breakpoint

would

still

have

be

 

 

on

line

88, since

it

is

the

first

runnable

statement.

 

 

Chapter 11. Debugging Programs179

Page 203
Image 203
IBM AS/400 manual Setting an, Breakpoint