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

93 lines
5.8 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="Set and remove breakpoints" />
<meta name="abstract" content="You can use breakpoints to stop a program object at a specific point when it is running." />
<meta name="description" content="You can use breakpoints to stop a program object at a specific point when it is running." />
<meta name="DC.subject" content="breakpoint, setting, description, removing, from program, unconditional, conditional, characteristics, function" />
<meta name="keywords" content="breakpoint, setting, description, removing, from program, unconditional, conditional, characteristics, function" />
<meta name="DC.Relation" scheme="URI" content="dbgile.htm" />
<meta name="DC.Relation" scheme="URI" content="srubp.htm" />
<meta name="DC.Relation" scheme="URI" content="srcbp.htm" />
<meta name="DC.Relation" scheme="URI" content="wrkbreak.htm" />
<meta name="DC.Relation" scheme="URI" content="brclear.htm" />
<meta name="DC.Relation" scheme="URI" content="nlss.htm" />
<meta name="DC.Relation" scheme="URI" content="brexam.htm" />
<meta name="DC.Relation" scheme="URI" content="rmbreak.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="srbp" />
<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 breakpoints</title>
</head>
<body id="srbp"><a name="srbp"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Set and remove breakpoints</h1>
<div><p>You can use breakpoints to stop a program object at a specific
point when it is running.</p>
<div class="section"><p> An <strong>unconditional breakpoint</strong> stops the program object at
a specific statement. A <strong>conditional breakpoint</strong> stops the program object
when a specific condition at a specific statement is met.</p>
<p>When the program
object stops, the Display Module Source display is shown. The appropriate
module object is shown with the source positioned at the line where the breakpoint
occurred. This line is highlighted. At this point, you can evaluate variables,
set more breakpoints, and run any of the debug commands.</p>
<p>You should
know the following characteristics about breakpoints before using them: </p>
<ul><li>When a breakpoint is bypassed, for example with the <span class="cmdname">Goto
(GOTO)</span> statement, that breakpoint isn't processed.</li>
<li>When a breakpoint is set on a statement, the breakpoint occurs before
that statement is processed.</li>
<li>When a statement with a conditional breakpoint is reached, the conditional
expression associated with the breakpoint is evaluated before the statement
is processed.</li>
<li>Breakpoint functions are specified through debug commands. <div class="p">These functions
include: <ul><li>Adding breakpoints to program objects</li>
<li>Removing breakpoints from program objects</li>
<li>Displaying breakpoint information</li>
<li>Resuming the running of a program object after a breakpoint has been reached.</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="srubp.htm">Set and remove unconditional breakpoints</a></strong><br />
There are a variety of ways to set and remove unconditional breakpoints.</li>
<li class="ulchildlink"><strong><a href="srcbp.htm">Set and remove conditional breakpoints</a></strong><br />
There are three ways to set and remove conditional breakpoints.</li>
<li class="ulchildlink"><strong><a href="wrkbreak.htm">Use the Work with Breakpoints display</a></strong><br />
You can use the Work with Breakpoints display to set or remove breakpoints.</li>
<li class="ulchildlink"><strong><a href="brclear.htm">Use the BREAK and CLEAR debug commands</a></strong><br />
An alternate method of setting and removing conditional breakpoints is to use the BREAK and CLEAR debug commands.</li>
<li class="ulchildlink"><strong><a href="nlss.htm">National Language Sort Sequence (NLSS)</a></strong><br />
NLSS applies only to non-numeric conditional breakpoint expressions of type Char-8.</li>
<li class="ulchildlink"><strong><a href="brexam.htm">Examples: Conditional breakpoint</a></strong><br />
These are examples of setting conditional breakpoints.</li>
<li class="ulchildlink"><strong><a href="rmbreak.htm">Remove all breakpoints</a></strong><br />
You can remove all breakpoints, conditional and unconditional, from a program object that has a module object shown on the Display Module Source display by using the CLEAR PGM debug command.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dbgile.htm" title="You can debug your ILE programs by using the ILE source debugger.">Debug ILE programs</a></div>
</div>
</div>
</body>
</html>