73 lines
4.5 KiB
HTML
73 lines
4.5 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="task" />
|
||
|
<meta name="DC.Title" content="Debug Java classes loaded through a custom class loader" />
|
||
|
<meta name="abstract" content="The easiest way to debug Java programs that run on your iSeries server is to use the IBM iSeries System Debugger. The IBM iSeries System Debugger provides a graphical user interface that enables you to more easily use the debugging capabilities of your iSeries server." />
|
||
|
<meta name="description" content="The easiest way to debug Java programs that run on your iSeries server is to use the IBM iSeries System Debugger. The IBM iSeries System Debugger provides a graphical user interface that enables you to more easily use the debugging capabilities of your iSeries server." />
|
||
|
<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="debugcla" />
|
||
|
<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 classes loaded through a custom class loader</title>
|
||
|
</head>
|
||
|
<body id="debugcla"><a name="debugcla"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Debug Java classes loaded through a custom class loader</h1>
|
||
|
<div><p>The easiest way to debug Java™ programs that run on your iSeries™ server
|
||
|
is to use the IBM<sup>®</sup> iSeries System
|
||
|
Debugger. The IBM iSeries System
|
||
|
Debugger provides a graphical user interface that enables you to more easily
|
||
|
use the debugging capabilities of your iSeries server.</p>
|
||
|
<div class="section"><p>For more information about using the iSeries System Debugger to debug and
|
||
|
test Java 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 your server to debug
|
||
|
a class loaded through a custom class loader, complete the following steps:</p>
|
||
|
</div>
|
||
|
<ol><li class="stepexpand"><span>Set the DEBUGSOURCEPATH environment variable to the directory containing
|
||
|
the source code, or in the case of a package-qualified class, the starting
|
||
|
directory of the package names.</span> <p>For example, if the custom class
|
||
|
loader loads classes located under the directory /MYDIR, perform the following:</p>
|
||
|
<pre> ADDENVVAR ENVVAR(DEBUGSOURCEPATH) VALUE('/MYDIR')</pre>
|
||
|
</li>
|
||
|
<li class="stepexpand"><span>Add the class to the debug view from the Display Module Source
|
||
|
screen. </span> <p>If the class has already been loaded into the Java virtual
|
||
|
machine (JVM), just add the *CLASS as usual and display the source code to
|
||
|
debug.</p>
|
||
|
<p>For example, to view the source for pkg1/test14.class, enter
|
||
|
the following:</p>
|
||
|
<pre> Opt Program/module Library Type
|
||
|
1 pkg1.test14_ *LIBL *CLASS</pre>
|
||
|
<p>If the
|
||
|
class has not been loaded into the JVM, perform the same steps to add the
|
||
|
*CLASS as previously indicated. The <strong>Java class file not available</strong> message
|
||
|
then displays. At this point, you may resume program processing. The JVM automatically
|
||
|
stops when any method of the class matching the given name is entered. The
|
||
|
source code for the class is displayed and can be debugged.</p>
|
||
|
</li>
|
||
|
</ol>
|
||
|
</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>
|