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

133 lines
7.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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="Add program objects to a debug session" />
<meta name="abstract" content="You can add more program objects to a debug session after starting the session." />
<meta name="description" content="You can add more program objects to a debug session after starting the session." />
<meta name="DC.subject" content="debug, session, adding program object, program object, adding to debug session, object, program, adding, program objects to debug session" />
<meta name="keywords" content="debug, session, adding program object, program object, adding to debug session, object, program, adding, program objects to debug session" />
<meta name="DC.Relation" scheme="URI" content="dbgile.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/chgdbg.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/addpgm.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/strdbg.htm" />
<meta name="DC.Relation" scheme="URI" content="dbpgm.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="addpgmdb" />
<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>Add program objects to a debug session</title>
</head>
<body id="addpgmdb"><a name="addpgmdb"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Add program objects to a debug session</h1>
<div><p>You can add more program objects to a debug session after starting
the session.</p>
<div class="section"> <p>To add ILE program objects and service programs to a debug session,
use option 1 (Add program) and type the name of the program object on the
first line of the Work with Module List display. The Work with Module List
display can be accessed from the Display Module Source display by pressing
F14 (Work with Module List). To add a service program, change the default
program type from *PGM to *SRVPGM. There is no limit to the number of ILE
program objects and service programs that can be included in a debug session
at any given time.</p>
<div class="fignone" id="addpgmdb__addpgm"><a name="addpgmdb__addpgm"><!-- --></a><span class="figcap">Figure 1. Add an ILE Program Object to
a Debug Session</span>. <span class="figdesc">When the Enter is pressed, program WEEKDAY2 is
added to the debug session</span><pre class="screen"> <strong>Work with Module List</strong>
System: SYSTEM01
Type options, press enter.
1=Add program 4=Remove program 5=Display module source
8=Work with module breakpoints
<strong>Opt</strong> <strong>Program/module</strong> <strong>Library</strong> <strong>Type</strong>
<em>1</em> <em>weekday2</em> <em>*LIBL</em> <em>*PGM</em>
<em> </em> DSPWKDAY MYLIB *PGM
<em> </em> DSPWKDAY *MODULE Selected
<em> </em> AABP1 *MODULE
<strong> Bottom</strong>
Command
===&gt; <em> </em>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel
</pre>
</div>
<div class="fignone" id="addpgmdb__addile"><a name="addpgmdb__addile"><!-- --></a><span class="figcap">Figure 2. Add an ILE Program Object to a Debug Session</span>. <span class="figdesc">The information message at the bottom of the display shows that program
WEEKDAY2 was added to the debug session.</span><pre class="screen"> <strong>Work with Module List</strong>
System: SYSTEM01
Type options, press enter.
1=Add program 4=Remove program 5=Display module source
8=Work with module breakpoints
<strong>Opt</strong> <strong>Program/module</strong> <strong>Library</strong> <strong>Type</strong>
<em> </em> <em>WEEKDAY2</em> <em>*LIBL</em> <em>*PGM</em>
<em> </em> WEEKDAY2 MYLIB *PGM
<em> </em> WEEKDAY2 *MODULE
<em> </em> DSPWKDAY MYLIB *PGM
<em> </em> DSPWKDAY *MODULE Selected
<em> </em> AABP1 *MODULE
<strong> Bottom</strong>
Command
===&gt; <em> </em>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel
<strong>Program WEEKDAY2 added to source debugger.</strong><strong></strong></pre>
</div>
<p>When you have finished adding program objects to the debug session,
press F3 (Exit) from the Work with Module List display to return to the Display
Module Source display. You can also use option 5 (Display Module Source) to
select and display a module.</p>
<p>To add OPM programs to a debug session,
use the <span class="cmdname">Add Program (ADDPGM)</span> command. A debug session can
include up to twenty (20) OPM programs at any given time. You can add OPM
programs that contain source debug data to the debug session by using option
1 (Add program) on the Work with Module List display. (This is true provided
the debug session allows OPM source level debugging.) You can allow OPM source
level debugging by starting the debug session and by using the OPMSRC parameter
on the <span class="cmdname">Start Debug (STRDBG)</span> command. If the OPMSRC parameter
was not specified on the <span class="cmdname">Start Debug (STRDBG)</span> command,
activate OPM source level debugging. Do this by using the OPM Source Level
Debug (OPMSRC) parameter on the <span class="cmdname">Change Debug (CHGDBG)</span> command.
Alternately, you can change the value of the OPM source debug support option
by using the SET debug command.</p>
</div>
</div>
<div>
<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 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>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../cl/chgdbg.htm">Change Debug (CHGDBG) command</a></div>
<div><a href="../cl/addpgm.htm">Add Program (ADDPGM) command</a></div>
<div><a href="../cl/strdbg.htm">Start Debug (STRDBG) command</a></div>
</div>
</div>
</body>
</html>