76 lines
4.6 KiB
HTML
76 lines
4.6 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 BREAK and CLEAR debug commands" />
|
|
<meta name="abstract" content="An alternate method of setting and removing conditional breakpoints is to use the BREAK and CLEAR debug commands." />
|
|
<meta name="description" content="An alternate method of setting and removing conditional breakpoints is to use the BREAK and CLEAR debug commands." />
|
|
<meta name="DC.subject" content="debug command, CLEAR, BREAK" />
|
|
<meta name="keywords" content="debug command, CLEAR, BREAK" />
|
|
<meta name="DC.Relation" scheme="URI" content="srbp.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="dbpgm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="nlss.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="brclear" />
|
|
<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 BREAK and CLEAR debug commands</title>
|
|
</head>
|
|
<body id="brclear"><a name="brclear"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Use the BREAK and CLEAR debug commands</h1>
|
|
<div><p>An alternate method of setting and removing conditional breakpoints
|
|
is to use the BREAK and CLEAR debug commands.</p>
|
|
<div class="section"><p>To set a conditional breakpoint by using the BREAK debug command,
|
|
type the following on the debug command line: </p>
|
|
<pre>BREAK line-number WHEN expression</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. <span class="synph"><span class="var">expression</span></span> is the conditional expression
|
|
that is evaluated when the breakpoint is encountered. The relational operators
|
|
supported for conditional breakpoints are <, >, =, <=, >=, and <>
|
|
(not equal).</p>
|
|
<p>In non-numeric conditional breakpoint expressions, the
|
|
shorter expression is implicitly padded with blanks before the comparison
|
|
is made. This implicit padding occurs before any National Language Sort Sequence
|
|
(NLSS) translation.</p>
|
|
<p>To remove a conditional 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 number in the currently
|
|
displayed view of the module object from which you want to remove a breakpoint.</p>
|
|
</div>
|
|
<div class="section"><p>In the statement view, no line numbers are displayed. To set
|
|
conditional breakpoints in the statement view, type the following on the debug
|
|
command line:</p>
|
|
<pre>BREAK procedure-name/statement-name WHEN expression</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 want 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 class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="dbpgm.htm" title="Many debug commands are available for use with the ILE source debugger.">Debug commands</a></div>
|
|
<div><a href="nlss.htm" title="NLSS applies only to non-numeric conditional breakpoint expressions of type Char-8.">National Language Sort Sequence (NLSS)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |