91 lines
5.2 KiB
HTML
91 lines
5.2 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="reference" />
|
||
|
<meta name="DC.Title" content="Use the Work with Breakpoints display" />
|
||
|
<meta name="abstract" content="You can use the Work with Breakpoints display to set or remove breakpoints." />
|
||
|
<meta name="description" content="You can use the Work with Breakpoints display to set or remove breakpoints." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="srbp.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="wrkbreak" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Use the Work with Breakpoints display</title>
|
||
|
</head>
|
||
|
<body id="wrkbreak"><a name="wrkbreak"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Use the Work with Breakpoints display</h1>
|
||
|
<div><p>You can use the Work with Breakpoints display to set or remove
|
||
|
breakpoints.</p>
|
||
|
<div class="section"><div class="note"><span class="notetitle">Note:</span> The relational operators supported for conditional breakpoints
|
||
|
are <, >, =, <=, >=, and <> (not equal).</div>
|
||
|
<p>The Work
|
||
|
with Module Breakpoints display can be accessed from the Display Module Source
|
||
|
display by pressing F13 (Work with Module Breakpoints). The Work with Module
|
||
|
Breakpoints display is shown in the figure below. To set a conditional breakpoint,
|
||
|
type the following and press <span class="uicontrol">Enter</span>:</p>
|
||
|
<ul><li>1 (Add) in the <em>Opt</em> field,</li>
|
||
|
<li>the debugger line number where you want to set the breakpoint in the <em>Line</em> field,</li>
|
||
|
<li>a conditional expression in the <em>Condition</em> field,</li>
|
||
|
</ul>
|
||
|
<p>For example, to set a conditional breakpoint at debugger line 35,
|
||
|
as shown in the figure below, type the following and press <span class="uicontrol">Enter</span>:</p>
|
||
|
<ul><li>1 (Add) in the <em>Opt</em> field,</li>
|
||
|
<li>35 in the <em>Line</em> field,</li>
|
||
|
<li>type &I=21 in the <em>Condition</em> field,</li>
|
||
|
</ul>
|
||
|
<p>To remove a conditional breakpoint, type 4 (Clear) in the <em>Opt</em> field
|
||
|
next to the breakpoint you want to remove, and press <span class="uicontrol">Enter</span>.
|
||
|
You can also remove unconditional breakpoints in this manner.</p>
|
||
|
<div class="fignone" id="wrkbreak__wrkbkpt"><a name="wrkbreak__wrkbkpt"><!-- --></a><span class="figcap">Figure 1. Set a Conditional Breakpoint</span><pre class="screen"> <strong>Work with Module Breakpoints</strong>
|
||
|
System: SYSTEM01
|
||
|
Program . . . : MYPGM Library . . . : MYLIB
|
||
|
Module . . . : MYMOD Type . . . . . : *PGM
|
||
|
|
||
|
Type options, press Enter.
|
||
|
1=Add 4=Clear
|
||
|
|
||
|
Opt Line Condition
|
||
|
1 35____ &I=21______________________
|
||
|
_ ______ ____________________________</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="section"><p>Repeat the previous steps for each conditional breakpoint you
|
||
|
want to set or remove. </p>
|
||
|
<div class="note"><span class="notetitle">Note:</span> If the line on which you want to set a breakpoint
|
||
|
is not a runnable statement, the breakpoint is set at the next runnable statement.</div>
|
||
|
<p>After
|
||
|
you specify all breakpoints that you want to set or remove, press F3 (Exit)
|
||
|
to return to the Display Module Source display.</p>
|
||
|
<p>Then press F3 (Exit)
|
||
|
to leave the Display Module Source display. You can also use F21 (Command
|
||
|
Line) from the Display Module Source display to call the program object from
|
||
|
a command line.</p>
|
||
|
<p>Call the program object. When a statement with a conditional
|
||
|
breakpoint is reached, the conditional expression associated with the breakpoint
|
||
|
is evaluated before the statement is run. If the result is false, the program
|
||
|
object continues to run. If the result is true, the program object stops,
|
||
|
and the Display Module Source display is shown. At this point, you can evaluate
|
||
|
variables, set more breakpoints, and run any of the debug commands.</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="srbp.htm" title="You can use breakpoints to stop a program object at a specific point when it is running.">Set and remove breakpoints</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|