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

149 lines
9.8 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="task" />
<meta name="DC.Title" content="Debug ILE programs" />
<meta name="abstract" content="You can debug your ILE programs by using the ILE source debugger." />
<meta name="description" content="You can debug your ILE programs by using the ILE source debugger." />
<meta name="DC.subject" content="debugging, ILE program, ILE (Integrated Language Environment) model, CL program" />
<meta name="keywords" content="debugging, ILE program, ILE (Integrated Language Environment) model, CL program" />
<meta name="DC.Relation" scheme="URI" content="debugprog.htm" />
<meta name="DC.Relation" scheme="URI" content="dbpgm.htm" />
<meta name="DC.Relation" scheme="URI" content="ppgmobj.htm" />
<meta name="DC.Relation" scheme="URI" content="strtiledb.htm" />
<meta name="DC.Relation" scheme="URI" content="addpgmdb.htm" />
<meta name="DC.Relation" scheme="URI" content="rmpgmdg.htm" />
<meta name="DC.Relation" scheme="URI" content="vwpgmsrc.htm" />
<meta name="DC.Relation" scheme="URI" content="srbp.htm" />
<meta name="DC.Relation" scheme="URI" content="cldbinstruction.htm" />
<meta name="DC.Relation" scheme="URI" content="eval.htm" />
<meta name="DC.Relation" scheme="URI" content="chgvarval.htm" />
<meta name="DC.Relation" scheme="URI" content="attrv.htm" />
<meta name="DC.Relation" scheme="URI" content="equat.htm" />
<meta name="DC.Relation" scheme="URI" content="dgnlss.htm" />
<meta name="DC.Relation" scheme="URI" content="rmsteps.htm" />
<meta name="DC.Relation" scheme="URI" content="rbam6probas.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/chgdbg.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/strdbg.htm" />
<meta name="DC.Relation" scheme="URI" content="../clfinder/finder.htm" />
<meta name="DC.Relation" scheme="URI" content="../books/sc415606.pdf" />
<meta name="DC.Relation" scheme="URI" content="stdbg.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="dbgile" />
<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>Debug ILE programs</title>
</head>
<body id="dbgile"><a name="dbgile"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Debug ILE programs</h1>
<div><p>You can debug your ILE programs by using the ILE source debugger. </p>
<div class="section"> <p>This topic describes how to: </p>
<ul><li>Prepare your ILE program for debugging</li>
<li>Start a debug session</li>
<li>Add and remove programs from a debug session</li>
<li>View the program source from a debug session</li>
<li>Set and remove conditional and unconditional breakpoints</li>
<li>Step through a program</li>
<li>Display the value of variables</li>
<li>Change the value of variables</li>
<li>Display the attributes of variables</li>
<li>Equate a shorthand name to a variable, expression, or debug command.</li>
</ul>
<p>While debugging and testing your programs, ensure that your library
list is changed to direct the programs to a test library containing test data
so that any existing real data is not affected.</p>
<p>You can prevent database
files in production libraries from being modified unintentionally by using
one of the following commands: </p>
<ul><li>Use the <span class="cmdname">Start Debug (STRDBG)</span> command and retain the
default *NO for the UPDPROD parameter.</li>
<li>Use the <span class="cmdname">Change Debug (CHGDBG)</span> command.</li>
</ul>
<p>The ILE source debugger is used to detect errors in and eliminate
errors from program objects and service programs. You can use the source debugger
to: </p>
<ul><li>Debug any ILE CL or mixed ILE language application</li>
<li>Monitor the flow of a program by using the debug commands while the program
is running.</li>
<li>View the program source</li>
<li>Set and remove conditional and unconditional breakpoints</li>
<li>Step through a specified number of statements</li>
<li>Display or change the value of variables</li>
<li>Display the attributes of a variable</li>
</ul>
<p>When a program stops because of a breakpoint or a step command, the
applicable module object's view is shown on the display at the point where
the program stopped. At this point you can enter more debug commands.</p>
<p>Before
you can use the source debugger, you must use the debug options parameter
(DBGVIEW) when you create a module object or program object using <span class="cmdname">Create
CL Module (CRTCLMOD)</span> or <span class="cmdname">Create Bound CL (CRTBNDCL)</span>.
After you set the breakpoints or other ILE source debugger options, you can
call the program.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dbpgm.htm">Debug commands</a></strong><br />
Many debug commands are available for use with the ILE source debugger.</li>
<li class="ulchildlink"><strong><a href="ppgmobj.htm">Prepare a program object for a debug session</a></strong><br />
Before you can use the ILE source debugger, you must prepare the program object.</li>
<li class="ulchildlink"><strong><a href="strtiledb.htm">Start the ILE source debugger</a></strong><br />
After you create the debug view, you can begin debugging your application using the ILE source debugger.</li>
<li class="ulchildlink"><strong><a href="addpgmdb.htm">Add program objects to a debug session</a></strong><br />
You can add more program objects to a debug session after starting the session.</li>
<li class="ulchildlink"><strong><a href="rmpgmdg.htm">Remove program objects from a debug session</a></strong><br />
You can remove program objects from a debug session after starting the session.</li>
<li class="ulchildlink"><strong><a href="vwpgmsrc.htm">View the program source</a></strong><br />
You can view the source of a program object using the Display Module Source display.</li>
<li class="ulchildlink"><strong><a href="srbp.htm">Set and remove breakpoints</a></strong><br />
You can use breakpoints to stop a program object at a specific point when it is running.</li>
<li class="ulchildlink"><strong><a href="cldbinstruction.htm">Use instruction stepping</a></strong><br />
After a breakpoint is encountered, you can run a specified number of statements of a program object, then stop the program again.</li>
<li class="ulchildlink"><strong><a href="eval.htm">Display variables</a></strong><br />
You can display the value of variables using the Display Module Source display or the EVAL debug command.</li>
<li class="ulchildlink"><strong><a href="chgvarval.htm">Change the value of variables</a></strong><br />
You can change the value of variables by using the EVAL command with the assignment operator (=).</li>
<li class="ulchildlink"><strong><a href="attrv.htm">Display variable attributes</a></strong><br />
You can display the attributes of a variable using the Attribute (ATTR) debug command. The attributes are the size (in bytes) and type of the variable.</li>
<li class="ulchildlink"><strong><a href="equat.htm">Equate a name with a variable, expression, or command</a></strong><br />
You can use the EQUATE debug command to equate a name with a variable, expression or debug command for shorthand use.</li>
<li class="ulchildlink"><strong><a href="dgnlss.htm">Source debug and i5/OS globalization</a></strong><br />
Be aware of certain conditions regarding i5/OS™ globalization when you are working
with source debug.</li>
<li class="ulchildlink"><strong><a href="rmsteps.htm">Operations that temporarily remove steps</a></strong><br />
Breakpoints or steps may be temporarily removed from a program while debugging when you use certain control language (CL) commands to specify your library or program.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="debugprog.htm" title="Debugging allows you to detect, diagnose, and eliminate errors in a program. This gives how-to information for debugging ILE and OPM programs.">Debug CL programs and procedures</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="stdbg.htm" title="Debug mode is a special environment in which the testing functions can be used in addition to the normal system functions.">Start debug mode</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbam6probas.htm" title="The operating system includes functions that let a programmer observe operations performed as a program runs.">Parameter values used for testing and debugging</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../cl/chgdbg.htm">Change Debug (CHGDBG) command</a></div>
<div><a href="../cl/strdbg.htm">Start Debug (STRDBG) command</a></div>
<div><a href="../clfinder/finder.htm">CL command finder</a></div>
<div><a href="../books/sc415606.pdf" target="_blank">ILE Concepts PDF</a></div>
</div>
</div>
</body>
</html>