Development tools System i5 Debugger

Similar documents
Networking Bootstrap Protocol

System i. Networking RouteD. Version 5 Release 4

IBM. Networking INETD. IBM i. Version 7.2

iscsi Configuration Manager Version 2.0

Tivoli Access Manager for Enterprise Single Sign-On

IBM Kenexa LCMS Premier on Cloud. Release Notes. Version 9.3

Database Database administration

Migrating Classifications with Migration Manager

Networking Trivial File Transfer Protocol

IBM. Networking Open Shortest Path First (OSPF) support. IBM i. Version 7.2

Limitations and Workarounds Supplement

Printing Systems Division. Infoprint Manager for AIX NLV Release Notes

IBM Endpoint Manager Version 9.1. Patch Management for Ubuntu User's Guide

IBM emessage Version 8.x and higher. Account Startup Overview

IBM Tivoli Directory Server Version 5.2 Client Readme

IBM WebSphere Sample Adapter for Enterprise Information System Simulator Deployment and Testing on WPS 7.0. Quick Start Scenarios

IBM. Connecting to System i IBM Navigator for i. System i. Version 7Release 1

Version 9 Release 0. IBM i2 Analyst's Notebook Premium Configuration IBM

Platform LSF Version 9 Release 1.1. Migrating on Windows SC

Integrated use of IBM WebSphere Adapter for Siebel and SAP with WPS Relationship Service. Quick Start Scenarios

Platform LSF Version 9 Release 1.3. Migrating on Windows SC

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

IBM Security QRadar Version Customizing the Right-Click Menu Technical Note

Using application properties in IBM Cúram Social Program Management JUnit tests

IBM Optim. Compare Introduction. Version7Release3

IBM Integration Designer Version 8 Release 5. Hello World for WebSphere DataPower Appliance IBM

Release Notes. IBM Tivoli Identity Manager Universal Provisioning Adapter. Version First Edition (June 14, 2010)

IBM LoadLeveler Version 5 Release 1. Documentation Update: IBM LoadLeveler Version 5 Release 1 IBM

Installing Watson Content Analytics 3.5 Fix Pack 1 on WebSphere Application Server Network Deployment 8.5.5

IBM. Avoiding Inventory Synchronization Issues With UBA Technical Note

Best practices. Starting and stopping IBM Platform Symphony Developer Edition on a two-host Microsoft Windows cluster. IBM Platform Symphony

Printing Systems Division. Infoprint Manager for Windows NLV Release Notes

Release Notes. IBM Security Identity Manager GroupWise Adapter. Version First Edition (September 13, 2013)

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

System i. Networking REXEC. Version 5 Release 4

Tivoli Access Manager for Enterprise Single Sign-On

IBM Datacap Mobile SDK Developer s Guide

IBM Security QRadar Version Forwarding Logs Using Tail2Syslog Technical Note

IBM. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns. Version 2 Release 1 BA

Release Notes. IBM Tivoli Identity Manager Rational ClearQuest Adapter for TDI 7.0. Version First Edition (January 15, 2011)

Tivoli Access Manager for Enterprise Single Sign-On

IBM Security QRadar Version 7 Release 3. Community Edition IBM

IBM Maximo Spatial Asset Management Version 7 Release 5. Installation Guide

IBM License Metric Tool Enablement Guide

Getting Started with InfoSphere Streams Quick Start Edition (VMware)

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns IBM BA

ios 9 support in IBM MobileFirst Platform Foundation IBM

IBM Maximo Calibration Version 7 Release 6. Installation Guide

CONFIGURING SSO FOR FILENET P8 DOCUMENTS

IBM i Version 7.2. Systems management Logical partitions IBM

IBM Cognos Dynamic Query Analyzer Version Installation and Configuration Guide IBM

IBM i2 ibridge 8 for Oracle

IBM Spectrum LSF Process Manager Version 10 Release 1. Release Notes IBM GI

IBM Tivoli Monitoring for Databases. Release Notes. Version SC

IBM Netcool/OMNIbus 8.1 Web GUI Event List: sending NodeClickedOn data using Netcool/Impact. Licensed Materials Property of IBM

Build integration overview: Rational Team Concert and IBM UrbanCode Deploy

Netcool/Impact Version Release Notes GI

IBM OpenPages GRC Platform - Version Interim Fix 1. Interim Fix ReadMe

IBM OpenPages GRC Platform Version 7.0 FP2. Enhancements

SMASH Proxy Version 1.0

IBM Directory Integrator 5.1.2: Readme Addendum

IBM Rational Synergy DCM-GUI

IBM Cloud Orchestrator. Content Pack for IBM Endpoint Manager for Software Distribution IBM

IBM Storage Driver for OpenStack Version Release Notes

IBM Financial Transactions Repository Version IBM Financial Transactions Repository Guide IBM

IBM Operations Analytics - Log Analysis: Network Manager Insight Pack Version 1 Release 4.1 GI IBM

Version 1.2 Tivoli Integrated Portal 2.2. Tivoli Integrated Portal Customization guide

Configuring IBM Rational Synergy to use HTTPS Protocol

Limitations and Workarounds Supplement

IBM VisualAge for Java,Version3.5. External Version Control

IBM Case Manager Mobile Version Users' Guide IBM SC

Installation and User s Guide

Best practices. Reducing concurrent SIM connection requests to SSM for Windows IBM Platform Symphony

IBM Maximo Calibration Version 7 Release 5. Installation Guide

Release Notes. IBM Tivoli Identity Manager GroupWise Adapter. Version First Edition (September 13, 2013)

Version 1 Release 1 November IBM Social Marketing Solution Pack User's Guide IBM

IBM FlashSystem V MTM 9846-AC3, 9848-AC3, 9846-AE2, 9848-AE2, F, F. Quick Start Guide IBM GI

IBM BladeCenter Chassis Management Pack for Microsoft System Center Operations Manager 2007 Release Notes

Workplace Designer. Installation and Upgrade Guide. Version 2.6 G

IBM Storage Management Pack for Microsoft System Center Operations Manager (SCOM) Version Release Notes

Migrating on UNIX and Linux

Rational Developer for IBM i (RDI) Distance Learning hands-on Labs IBM Rational Developer for i. Maintain an ILE RPG application using.

IBM FlashSystem V Quick Start Guide IBM GI

IBM Content Analytics with Enterprise Search Version 3.0. Expanding queries and influencing how documents are ranked in the results

IBM Operational Decision Manager. Version Sample deployment for Operational Decision Manager for z/os artifact migration

Release Notes. IBM Tivoli Identity Manager Oracle PeopleTools Adapter. Version First Edition (May 29, 2009)

Performance Tuning Guide

Tivoli Access Manager for Enterprise Single Sign-On

Tivoli Access Manager for Enterprise Single Sign-On

Application and Database Protection in a VMware vsphere Environment

IBM OpenPages GRC Platform Version Interim Fix 5. Interim Fix ReadMe

Best practices. Linux system tuning for heavilyloaded. IBM Platform Symphony

IBM i Version 7.2. Connecting to your system Connecting to IBM Navigator for i IBM

ReadMeFirst for IBM StoredIQ

Lotus Forms Designer 3. What s New

IBM StoredIQ Platform Version Overview Guide GC

IBM Storage Driver for OpenStack Version Installation Guide SC

Engineering and Scientific Subroutine Library for AIX, Version 4 Release 2. Installation GA

ServeRAID-MR10i SAS/SATA Controller IBM System x at-a-glance guide

IBM Copy Services Manager Version 6 Release 1. Release Notes August 2016 IBM

Transcription:

System i Development tools System i5 Debugger Version 6 Release 1

System i Development tools System i5 Debugger Version 6 Release 1

Note Before using this information and the product it supports, read the information in Notices, on page 7. This edition applies to version 6, release 1, modification 0 of IBM Toolbox for Java (product number 5761-JC1) and to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. Copyright International Business Machines Corporation 2004, 2008. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents System i5 Debugger......... 1 What s new for V6R1........... 1 PDF file for System i5 Debugger........ 1 System i5 Debugger components....... 2 Installing System i5 Debugger........ 3 Running System i5 Debugger......... 4 Related information for System i5 Debugger.... 5 Appendix. Notices.......... 7 Programming interface information....... 9 Trademarks............... 9 Terms and conditions........... 9 Copyright IBM Corp. 2004, 2008 iii

iv System i: Development tools System i5 Debugger

System i5 Debugger IBM System i5 Debugger provides a graphical user debugging environment on the System i platform. Use System i5 Debugger to debug and test programs that run on your system, including programs written in ILE and OPM languages, Java, and programs that run in the PASE environment. System i5 Debugger is packaged in a JAR file with IBM Toolbox for Java. What s new for V6R1 Read about new or significantly changed information for the System i5 Debugger topic collection. IBM System i5 Debugger provides a graphical user debugging environment on the IBM System i5 platform. Use System i5 Debugger to debug and test programs that run on your system, including programs written in ILE and OPM languages, Java, and programs that run in the i5/os PASE environment. Updated installation instructions The Software requirements on page 4 in the Installing System i5 Debugger on page 3 topic have been updated to reflect the supported versions of Java. How to see what s new or changed To help you see where technical changes have been made, the information center uses: v The image to mark where new or changed information begins. v The image to mark where new or changed information ends. In PDF files, you might see revision bars ( ) in the left margin of new and changed information. To find other information about what s new or changed this release, see the Memo to users. PDF file for System i5 Debugger You can view and print a PDF file of this information. To view or download the PDF version of this document, select System i5 Debugger (about 134 KB). You can view or download these related topic PDFs: v IBM Developer Kit for Java (4585 KB) v IBM Toolbox for Java (6700 KB) v ILE Concepts (1517 KB) v i5/os PASE (645 KB) Saving PDF files To save a PDF on your workstation for viewing or printing: 1. Right-click the PDF link in your browser. 2. Click the option that saves the PDF locally. 3. Navigate to the directory in which you want to save the PDF. Copyright IBM Corp. 2004, 2008 1

4. Click Save. Downloading Adobe Reader You need Adobe Reader installed on your system to view or print these PDFs. You can download a free copy from the Adobe Web site (www.adobe.com/products/acrobat/readstep.html). System i5 Debugger components The components of the System i5 Debugger work together to provide a powerful debugging tool. IBM System i5 Debugger consists of the following components: v Client-based Debug Manager System Debugger i5/os PASE System Debugger on page 3 v Host-based Debug Hub on page 3 Debug Server on page 3 The following descriptions provide only general information about the System i5 Debugger components. To learn more about the components, run System i5 Debugger, and from any System i5 Debugger window, click Help. Debug Manager Debug Manager registers the client with the Debug Hub, which enables using the graphical debugging mode for the selected systems. A registered client that issues the Start Debugging (STRDBG) CL command from an emulation session starts System Debugger. Use Debug Manager to manage your debugging operations and connections: v Add and remove systems v Add and remove users v Start debugging operations v Start System Debugger and i5/os PASE System Debugger System Debugger Use System Debugger to debug programs written in ILE and OPM languages and Java that run on the system. You can debug programs that are running in existing jobs on the server or use System Debugger to open and then debug programs in a system batch job. You can configure System Debugger to start automatically, manually from a workstation command prompt, or by using the Debug Manager interface. Use System Debugger to perform debugging activities that include: v Setting breakpoints v Stepping through programs v Inspecting variables v Examining the callstack v Examining memory associated with program variables 2 System i: Development tools System i5 Debugger

v Examining thread activity i5/os PASE System Debugger Use i5/os PASE Debugger to debug programs that run in an i5/os PASE environment. You can debug programs that are running in an existing process on the system or use i5/os PASE Debugger to open and then debug a program. You can start i5/os PASE Debugger directly from the command line or by using the Debug Manager interface. In addition to the debugging activities listed previously for System Debugger, you can use i5/os PASE Debugger to perform i5/os PASE-specific debugging activities that include: v Using the program loadmap to debug v Viewing a list of source files and methods v Tracking parent and child processes v Examining registers Debug Hub Debug Hub provides the following functions: v Serves as a registry for clients that want to use System Debugger or i5/os PASE Debugger v Handles incoming requests for starting debug servers Use the Debug Manager interface to register your client with Debug Hub. Registering a client stores both the user information and the TCP/IP address of the client in the registry. Using the Start Debugging (STRDBG) CL command from an emulation session contacts Debug Hub to see if the user executing the command is registered with Debug Manager. It also checks to see if the command being executed is from the same TCP/IP address as Debug Manager. If these qualifications are met, System i5 Debugger (the graphical application) is started instead of the traditional debug environment. Debug Hub also serves as a single point of contact for all system debugging applications. When a System i5 Debugger component performs a start debug operation, Debug Hub submits a Debug Server job on behalf of the user and passes the associated TCP/IP connection to the job. Debug Server Debug Server is a TCP/IP server that is started by the Debug Hub when one of the debuggers issues a request to start debugging. The server job then services the job that is being debugged and issues the appropriate debugging APIs and commands. Installing System i5 Debugger Before installing System i5 Debugger on your workstation, you must meet some hardware and software requirements. Hardware requirements You must have the following hardware installed on your client: v CPU: 400-500 MHz v Memory: minimum 128 MB (256 MB recommended) System i5 Debugger 3

Software requirements You must have the following software installed on your client: v One of the following: Java 2 Platform, either the Standard Edition (J2SE) or the Enterprise Edition (J2EE), version 1.4 or later Java 2 Runtime Environment (JRE), Standard Edition, version 1.4 or later v jhall.jar (one of the jar files in JavaHelp) Note: Be sure to add jhall.jar to your client CLASSPATH environment variable. For information about installing the previously mentioned software, see the Sun Java Web site. Installing the System i5 Debugger jar file Before installing System i5 Debugger, ensure that your client system meets the previously listed hardware and software requirements. IBM System i5 Debugger is packaged in a jar file, called tes.jar, as part of IBM Toolbox for Java. If you have not installed IBM Toolbox for Java on your client, you need to install it when you install the jar file that contains System i5 Debugger. To install System i5 Debugger, complete the following steps: 1. Install IBM Toolbox for Java, making sure to copy jt400.jar and tes.jar to your client. For more information about installing IBM Toolbox for Java, see the Installing and managing IBM Toolbox for Java topic. Note: If you already installed IBM Toolbox for Java on your server, both the jt400.jar and the tes.jar files are in the same directory on the server: /QIBM/ProdData/HTTP/Public/jt400/lib/ 2. After copying the jar files to your client, add them to your client CLASSPATH environment variable. Now you can use your client to run System i5 Debugger. Running System i5 Debugger Start the System i5 Debugger components using these instructions. Starting Debug Manager To start Debug Manager from a command prompt on your client, run the following command: java utilities.debugmgr Starting System Debugger To start System Debugger from a command prompt on your client, run the following command: java utilities.debug <args> where <args> represents any of the following command arguments: v -u = User v -s = System name 4 System i: Development tools System i5 Debugger

v -j = Job description, in the form of: job number/job user/job name v -p = Program to run, in the form of: program library/program name Note: Once you use Debug Manager to register your client, you can issue the Start Debugging (STRDBG) CL command from an emulation session to start System Debugger. You can also start System Debugger directly from System Debug Manager. Starting i5/os PASE Debugger To start i5/os PASE Debugger from a command prompt on your client, run the following command: java utilities.debugpase <args> where <args> represents any of the following command arguments: v -u = User v -s = System name v -p = Fully qualified path of program to run v -pid = Process ID Note: You can start i5/os PASE Debugger directly from System Debug Manager. Unlike System Debugger, you cannot start i5/os PASE Debugger from an emulator session. To learn more about System i5 Debugger, start System i5 Debugger and review the help information by performing one of the following actions: v From the Help menu in any System i5 Debugger window, click Help. v Press F1. Related information for System i5 Debugger Other information center topic collections contain information that relates to the System i5 Debugger topic collection. Other information v IBM Developer Kit for Java v IBM Toolbox for Java v ILE Concepts v i5/os PASE System i5 Debugger 5

6 System i: Development tools System i5 Debugger

Appendix. Notices This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user s responsibility to evaluate and verify the operation of any non-ibm product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to: IBM World Trade Asia Corporation Licensing 2-31 Roppongi 3-chome, Minato-ku Tokyo 106-0032, Japan The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-ibm Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: IBM Corporation Copyright IBM Corp. 2004, 2008 7

Software Interoperability Coordinator, Department YBWA 3605 Highway 52 N Rochester, MN 55901 U.S.A. Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement, IBM License Agreement for Machine Code, or any equivalent agreement between us. Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurements may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. Information concerning non-ibm products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-ibm products. Questions on the capabilities of non-ibm products should be addressed to the suppliers of those products. All statements regarding IBM s future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. This information is for planning purposes only. The information herein is subject to change before the products described become available. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrate programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. Each copy or any portion of these sample programs or any derivative work, must include a copyright notice as follows: (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. Copyright IBM Corp. _enter the year or years_. All rights reserved. If you are viewing this information softcopy, the photographs and color illustrations may not appear. 8 System i: Development tools System i5 Debugger

Programming interface information This System i5 Debugger publication documents intended Programming Interfaces that allow the customer to write programs to obtain the services of IBM Toolbox for Java. Trademarks The following terms are trademarks of International Business Machines Corporation in the United States, other countries, or both: i5/os IBM System i System i5 Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others. Terms and conditions Permissions for the use of these publications is granted subject to the following terms and conditions. Personal Use: You may reproduce these publications for your personal, noncommercial use provided that all proprietary notices are preserved. You may not distribute, display or make derivative works of these publications, or any portion thereof, without the express consent of IBM. Commercial Use: You may reproduce, distribute and display these publications solely within your enterprise provided that all proprietary notices are preserved. You may not make derivative works of these publications, or reproduce, distribute or display these publications or any portion thereof outside your enterprise, without the express consent of IBM. Except as expressly granted in this permission, no other permissions, licenses or rights are granted, either express or implied, to the publications or any information, data, software or other intellectual property contained therein. IBM reserves the right to withdraw the permissions granted herein whenever, in its discretion, the use of the publications is detrimental to its interest or, as determined by IBM, the above instructions are not being properly followed. You may not download, export or re-export this information except in full compliance with all applicable laws and regulations, including all United States export laws and regulations. IBM MAKES NO GUARANTEE ABOUT THE CONTENT OF THESE PUBLICATIONS. THE PUBLICATIONS ARE PROVIDED AS-IS AND WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. Appendix. Notices 9

10 System i: Development tools System i5 Debugger

Printed in USA