ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/srubp.htm

92 lines
5.3 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="Set and remove unconditional breakpoints" />
<meta name="abstract" content="There are a variety of ways to set and remove unconditional breakpoints." />
<meta name="description" content="There are a variety of ways to set and remove unconditional breakpoints." />
<meta name="DC.subject" content="breakpoint, unconditional, removing, setting, unconditional breakpoint" />
<meta name="keywords" content="breakpoint, unconditional, removing, setting, unconditional breakpoint" />
<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="srubp" />
<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> Set and remove unconditional breakpoints</title>
</head>
<body id="srubp"><a name="srubp"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1"> Set and remove unconditional breakpoints</h1>
<div><p>There are a variety of ways to set and remove unconditional breakpoints.</p>
<div class="section"><p>You can set or remove an unconditional breakpoint by using: </p>
<ul><li>F6 (Add/Clear breakpoint) from the Display Module Source display</li>
<li>F13 (Work with Module Breakpoints) from the Display Module Source display</li>
<li>The BREAK debug command to set a breakpoint</li>
<li>The CLEAR debug command to remove a breakpoint</li>
</ul>
<p>The simplest way to set and remove an unconditional breakpoint
is to use F6 (Add/Clear breakpoint) from the Display Module Source display.
To set an unconditional breakpoint using F6, place your cursor on the line
to which you want to add the breakpoint and press F6. An unconditional breakpoint
is then set on the line. To remove an unconditional breakpoint, place your
cursor on the line from which you want to remove the breakpoint and press
F6. The breakpoint is then removed from the line.</p>
<div class="p">Repeat the previous
steps for each unconditional breakpoint you want to set. <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>
</div>
</div>
<div class="section"><p>After the breakpoints are set, 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 from a command line.</p>
<p>Call
the program object. When a breakpoint is reached, the program stops and the
Display Module Source display is shown again. At this point, you can evaluate
variables, set more breakpoints, and run any of the debug commands.</p>
<p>An
alternate method of setting and removing unconditional breakpoints is to use
the BREAK and CLEAR debug commands.</p>
<p>To set an unconditional breakpoint
by using the BREAK debug command, type the following on the debug command
line: </p>
<pre>BREAK line-number</pre>
<p><span class="synph"><span class="var">Line-number</span></span> is the line number in
the currently displayed view of the module object on which you want to set
a breakpoint.</p>
<p>To remove an unconditional breakpoint by using the CLEAR
debug command, type the following on the debug command line: </p>
<pre>CLEAR line-number</pre>
<p><span class="synph"><span class="var">Line-number</span></span> is the line number in
the currently displayed view of the module object from which you want to remove
a breakpoint.</p>
</div>
<div class="section"><p>If using the statement view, there is no line numbers displayed.
To set unconditional breakpoints in the statement view, type the following
on the debug command line:</p>
<pre>BREAK procedure-name/statement-number</pre>
<p><span class="synph"><span class="var">Procedure-name</span></span> is the name of your
CL module. <span class="synph"><span class="var">Statement-number</span></span>(from the compiler listing)
is the statement number where you wanted to stop.</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>