81 lines
4.9 KiB
HTML
81 lines
4.9 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="Multithreaded job debugging" />
|
|
<meta name="abstract" content="The spawn() API provides a mechanism to allow you to start a debugging session before actually calling the multithreaded program to be debugged." />
|
|
<meta name="description" content="The spawn() API provides a mechanism to allow you to start a debugging session before actually calling the multithreaded program to be debugged." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahwbugco.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="rzahwdeb-debco" />
|
|
<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>Multithreaded job debugging</title>
|
|
</head>
|
|
<body id="rzahwdeb-debco"><a name="rzahwdeb-debco"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Multithreaded job debugging</h1>
|
|
<div><p>The <span class="apiname">spawn()</span> API provides a mechanism to allow
|
|
you to start a debugging session before actually calling the multithreaded
|
|
program to be debugged.</p>
|
|
<div class="section"><p>Setting the QIBM_CHILD_JOB_SNDINQMSG environment variable to 1
|
|
controls this capability. Refer to the usage notes for the spawn() API in
|
|
the System API Reference, for details about the use of this environment variable.</p>
|
|
</div>
|
|
<div class="section"><p>An example <span class="cmdname">SPAWN</span> command is available for your
|
|
use and modification as part of <span class="keyword">i5/OS™</span> option
|
|
7, the <span class="keyword">i5/OS</span> Example Tools
|
|
Library, QUSRTOOL. Member TP0ZINFO in the file QATTINFO in the QUSRTOOL library
|
|
contains information about how to create the <span class="cmdname">SPAWN</span> CL command.</p>
|
|
</div>
|
|
<div class="section"><p>You can also simplify the process of starting a job that runs
|
|
the multithreaded program and the debugging session by creating a command
|
|
(such as the SPAWN command) that performs the necessary steps. The steps
|
|
are as follows: </p>
|
|
<ul><li>Signing on to a display station session</li>
|
|
<li>Starting a job to run the multithreaded program</li>
|
|
<li>Using the <span class="cmdname">Start Service Job (STRSRVJOB)</span> command to
|
|
service the job running the multithreaded program</li>
|
|
<li>Calling the <span class="cmdname">Start Debug (STRDBG)</span> command, adding programs
|
|
to debug, and setting breakpoints</li>
|
|
<li>Notifying the servicing job when the thread hits a breakpoint so that
|
|
it stops the thread</li>
|
|
<li>Stopping all threads with the debugger support</li>
|
|
<li>Issuing valid debug commands from the debug screen that is displayed</li>
|
|
<li>Resuming the thread that hit the breakpoint and then all other threads</li>
|
|
<li>Repeating the above cycle until debugging is complete</li>
|
|
<li>Calling the <span class="cmdname">End Debug (ENDDBG)</span> command</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><p>You can find additional information about thread debugging capabilities
|
|
in the following topics:</p>
|
|
<ul><li><a href="../apiref/api.htm">APIs</a></li>
|
|
<li><a href="../apis/concep32.htm">SPAWN CL
|
|
command, QUSRTOOL example</a></li>
|
|
<li><a href="../books/sc092712.pdf" target="_blank"><em>WebSphere<sup>®</sup> Development
|
|
Studio: ILE C/C++ Programmer's Guide, SC09-2712</em> PDF</a> <img src="wbpdf.gif" alt="Link to PDF" /></li>
|
|
<li><a href="../books/sc415606.pdf" target="_blank"><em>ILE
|
|
Concepts, SC41-5606</em> PDF</a> <img src="wbpdf.gif" alt="Link to PDF" /></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahwbugco.htm" title="Use the concepts and techniques that are described here to learn about debugging and servicing multithreaded jobs:">Debugging and servicing of multithreaded jobs</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |