IBM AS/400 manual Removing All Job and, Debug Commands, Setting and Removing Watch Conditions

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 212
Image 212
Setting and Removing Watch Conditions

Setting and Removing Watch Conditions

To remove a conditional thread breakpoint using the Work with Module Bre display:

1. Type 4 (Clear) Optin fitheld next to the breakpoint you want to remove

2. Press Enter.

Using

the

TBREAK or CLEAR

Debug Commands

 

 

 

 

 

You

use

the

same syntax for the TBREAK debug command

as

you

would

fo

BREAK

debug command. The difference between these

commands

is

that

th

BREAK

debug command sets a conditional job breakpoint

at

the same posit

all

threads,

while the TBREAK debug command sets a

conditional

thread

b

point in

the

current thread.

 

 

 

 

 

To remove

a

conditional

thread breakpoint, use the

CLEAR

debug

command.

When

a conditional thread breakpoint is removed, it

is

removed

for

the

thread only.

 

 

 

 

 

 

 

Removing All Job and

Thread

Breakpoints

 

 

 

 

 

 

 

 

You

can

remove

all job and

thread

breakpoints,

conditional

and unconditio

a program object that has

a

module

object

shown on

the

Display

Module

display by using the CLEAR

PGM

debug

command.

To

use

the

debug

command,

type:

 

 

 

 

 

 

 

 

 

 

CLEAR PGM

 

 

 

 

 

 

 

 

 

 

on the debug command line.

The

breakpoints are

removed from all

of the

bound to

the

program.

 

 

 

 

 

 

 

 

Setting and Removing

Watch

Conditions

 

 

 

You

use watch condition

to monitor

if

the current value of an expression

variable

changes

while your program runs. Setting watch conditions is sim

setting

conditional

breakpoints,

with

one important difference:

¹Watch conditions stop the program as soon as the value of a watche

expression or variable changes from its current value.

¹ Conditional job breakpoints

stop the program only if a variable change

value specified in the

condition.

The debugger watches an expression or a variable through the contents storage address , computed at the time the watch condition is set. When content at the storage address is changed from the value it had whe condition was set or when the last watch condition occurred, the progr

Note: After a watch condition has been registered, the new contents a watched storage location are saved as the new current value of sponding expression or variable. The next watch condition will be if the new contents at the watched storage location change subs

188 ILE RPG for AS/400 Programmer's Guide

Page 212
Image 212
IBM AS/400 manual Removing All Job and, Debug Commands, Setting and Removing Watch Conditions, Breakpoints