IBM AS/400 manual Setting and Removing Breakpoints

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 201
Image 201
Setting and Removing Breakpoints

Setting and Removing Breakpoints

ˆ

Display Module Source

..............................................................................

:

 

 

 

 

 

Select View

:

:

 

 

 

 

 

 

:

:

Current View . . .

:

ILE RPG Copy View

:

:

 

 

 

 

 

 

:

: Type option, press Enter.

 

:

:

 

 

1=Select

 

 

:

:

Opt

View

 

 

:

:

 

 

:

:

1

 

ILE RPG Listing View

:

:

 

 

 

ILE RPG Source View

:

:

 

 

 

ILE RPG Copy View

:

:

 

 

 

 

 

 

:

:

 

 

 

 

 

 

Bottom :

:

F12=Cancel

 

 

:

:

 

 

 

 

 

 

:

:

............................................................................

 

 

 

 

:

 

 

 

 

 

 

 

More...

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

˜

Figure 80. Changing a View of a Module

The current view is listed at the top of the window, and the o available are shown below. Each module in a program can have a di of views available, depending on the debug options used to creat

Note: If

a

module

is created with DBGVIEW(*ALL), the

Select

View

will

show three views available: root source, COPY,

and

listing

module

has no

/COPY members, then the COPY view

is

identical

root

source

view.

 

 

 

3.Type 1a next to the listing view, and press Enter. The Display Mod display appears showing the module with a listing view.

Setting and Removing Breakpoints

You can use breakpoints to halt a program object at a specific po

running. Anunconditional breakpointstops the program object at a specific

ment. Aconditional breakpointstops the program object when a specific c tion at a specific statement is met.

 

There are two types of breakpoints: job threadand threinad.threadedEach

 

 

 

application

may

have

it's

own thread

breakpoint

at

the

same position

 

time.

Both

job

and

thread

breakpoints can

be

unconditional

or

conditi

 

general, there

is one set of debug commands and Function

keys

for j

 

and another for

thread breakpoints. For the rest of this section on

 

word

breakpoint

refers

to

both

job

and

thread,

unless specifically

 

wise.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note:

Breakpoints

are

automatically

generated

for

input

and

output

spe

 

if

the

default

OPTION(*DEBUGIO)

is

specified.

If

you

do

not

 

erate

breakpoints,

specify

OPTION(*NODEBUGIO).

 

 

 

 

You set the breakpoints prior to running stops, the Display Module Source display

the program. When the progr is shown. The appropriate mo

Chapter 11. Debugging Programs177

Page 201
Image 201
IBM AS/400 manual Setting and Removing Breakpoints