ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/debnm.htm

64 lines
4.4 KiB
HTML
Raw Permalink 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 Java and native method programs" />
<meta name="abstract" content="You can debug Java programs and native method programs at the same time. While you are debugging your source on the interactive display, you can debug a native method that is programmed in C, which is within a service program (*SRVPGM). The *SRVPGM must be compiled and created with debug data." />
<meta name="description" content="You can debug Java programs and native method programs at the same time. While you are debugging your source on the interactive display, you can debug a native method that is programmed in C, which is within a service program (*SRVPGM). The *SRVPGM must be compiled and created with debug data." />
<meta name="DC.Relation" scheme="URI" content="debug.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="debnm" />
<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 Java and native method programs</title>
</head>
<body id="debnm"><a name="debnm"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Debug Java and native method programs</h1>
<div><p>You can debug Java™ programs and native method programs
at the same time. While you are debugging your source on the interactive display,
you can debug a native method that is programmed in C, which is within a service
program (*SRVPGM). The *SRVPGM must be compiled and created with debug data.</p>
<div class="section"><p>The easiest way to debug Java programs and native method programs
(or service programs) is to use the IBM<sup>®</sup> iSeries™ System Debugger. The IBM iSeries System
Debugger provides a graphical user debugging environment on your iSeries server.
For more information about using the iSeries System Debugger to debug and
test programs that run on your iSeries server, see <a href="../rzamq/rzamqmain.htm" target="_blank">IBM iSeries System Debugger</a>.</p>
<p>To
use the interactive display of the server to debug Java programs and native method programs
at the same time, complete the following steps:</p>
</div>
<ol><li><span>Press F14 (Work with module list) when your Java program
source is displayed to show the Work with Module List (WRKMODLST) display.</span></li>
<li><span>Select option 1 (Add program) to add your service program.</span></li>
<li><span>Select option 5 (Display module source) to display the *MODULE
that you want to debug and the source.</span></li>
<li><span>Press F6 (Add/Clear breakpoint) to set breakpoints in the service
program. For more information about setting breakpoints, see <a href="setbreak.htm">Set
breakpoints</a>.</span></li>
<li><span>Press F12 (Resume) to run the program.</span></li>
</ol>
<div class="section"><div class="note"><span class="notetitle">Note:</span> When the breakpoint is hit in your service program, the program
stops running, and the source for the service program displays.</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="debug.htm" title="To debug Java programs from the i5/OS command line, select one of the options listed here.">Debug Java programs from an i5/OS command line</a></div>
</div>
</div>
</body>
</html>