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

69 lines
4.0 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 Java programs by using the *DEBUG option" />
<meta name="abstract" content="Use the *DEBUG option to view the source code before running the program. The *DEBUG option allows you to set breakpoints within the code." />
<meta name="description" content="Use the *DEBUG option to view the source code before running the program. The *DEBUG option allows you to set breakpoints within the code." />
<meta name="DC.Relation" scheme="URI" content="debugpro.htm" />
<meta name="DC.Relation" scheme="URI" content="initdeb.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="debugopt" />
<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 programs by using the *DEBUG option</title>
</head>
<body id="debugopt"><a name="debugopt"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Debug Java programs by using the *DEBUG option</h1>
<div><p>Use the *DEBUG option to view the source code before running the
program. The *DEBUG option allows you to set breakpoints within the code.</p>
<div class="section"><p>To use the *DEBUG option, enter the Run Java™ (RUNJVA)
command that is followed by the name of your classfile and OPTION(*DEBUG)
on the command line. For example, the iSeries™ command line should look like
this:</p>
<blockquote><pre>RUNJVA CLASS(classname) OPTION(*DEBUG)</pre>
</blockquote>
<div class="note"><span class="notetitle">Note:</span> If you are not authorized to use the Start Service
Job (STRSRVJOB) command, OPTION(*DEBUG) is ignored.</div>
<p>To view the debugging
displays, see <a href="initdeb.htm">Initial debugging displays for Java programs</a>.</p>
<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>
<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">IBM iSeries System
Debugger</a>.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="initdeb.htm">Initial debugging displays for Java programs</a></strong><br />
As you debug your Java programs, follow these example displays
for your programs. These displays show an example program, named Hellod.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="debugpro.htm" title="The easiest way to debug Java programs that run on your iSeries server is to use the IBM iSeries System Debugger. IBM iSeries System Debugger provides a graphical user interface that enables you to more easily use the debugging capabilities of your iSeries server.">Debug a Java program</a></div>
</div>
</div>
</body>
</html>