========================================================================
* IBM(R) IBM Debugger for AIX, Version 6.1
* (C) COPYRIGHT International Business Machines Corp. 2006, 2008
* 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.
* AIX and IBM are trademarks of IBM Corp.
*
* Other company, product, and service names may be trademarks or service
* marks of others.
========================================================================

README - IBM Debugger for AIX, Version 6.1

The IBM Debugger for AIX, Version 6.1 supports local and remote debugging for C/C++ applications that are running on AIX Version 5. Applications running on an AIX machine can be debugged from the debugger user interface running on the same machine or remotely from another AIX or Windows machine.

The IBM Debugger for AIX consists of two components:

  1. An AIX debug engine program (irmtdbgc) that is used to control and debug a C/C++ application on AIX Version 5. The debug engine runs on the same machine as the application to be debugged. The debug engine interacts with the application under debug control.
  2. A user interface client (idebug) that communicates with the engine and allows you to debug your application. A version of idebug for both AIX and Windows is provided. The user interface client can run on the same AIX machine as the debug engine.

This document contains the following sections:

Prerequisite software

AIX client installation

The AIX client requires AIX v5.1 (AIX 5100-08 or later) or AIX v5.2 (AIX 5200-07 or later) or AIX v5.3 (AIX 5300-03 or later).

To test whether this install platform is supported, at the system prompt type lscfg -p | fgrep Architecture. You should receive the reply Model Architecture: chrp. Only Common Hardware Reference Platform (chrp) systems are supported.

Debugging of the following features is only supported if the corresponding features are present in the hardware or operating system:

Installing the IBM Debugger for AIX

If you installed all filesets when installing the XL C/C++ compilers, as described in the default installation procedure in the "IBM XL C/C++ Enterprise Edition for AIX, V9.0 Installation Guide", all the IBM Debugger components for AIX (client and engine) are already installed.

If you did not install all filesets when installing the XL C/C++ compilers, or used the non-default installation procedure, you will need to install the IBM Debugger components for AIX separately. For instructions, see "Installing the debug engine (irmtdbgc) and user interface client (idebug) for AIX" below.

If you want to use the IBM Debugger user interface client on Windows, you will need to follow the procedure in "Installing the user interface client (idebug) for Windows" below.

If you are installing a full product version and not an Interim Fix, it is recommended that you uninstall any previous version of the IBM Debugger before installing this version of the IBM Debugger for AIX (see Uninstalling the IBM Debugger for AIX).

Installing the debug engine (irmtdbgc) and user interface client (idebug) for AIX

The IBM Debugger for AIX is packaged in the following filesets:

Fileset

Description

ibmdebugger Top-level fileset that contains set-up and installation information. Contains the debug engine components, client UI components, and online help components for AIX.
ibmdebugger.ui IBM Debugger for AIX user interface.
ibmdebugger.engine IBM Debugger for AIX engine for compiled language debugging.
ibmdebugger.engine.msg.LANG IBM Debugger for AIX engine national language filesets. Contains message files, where LANG is one of: pt_BR, zh_CN, zh_TW, de_DE, es_ES, fr_FR, it_IT, ja_JP, or ko_KR.
ibmdebugger.jre Java Runtime Environment (JRE) used with the IBM Debugger for AIX.

To install the IBM Debugger components on AIX, as well as the appropriate message filesets that your system currently supports, issue the following commands:

installp -aXgd . -e /tmp/ibmdebugger.install.log ibmdebugger*

Installing the user interface client (idebug) for Windows

To install the user interface client for Windows:

  1. Open a command prompt and navigate to the IBMdebugger\windows\ directory on the product CD.
  2. Run the program, IBMdebugger\windows\setup.exe, on the product CD and then follow the on-screen prompts to install the user interface client.

Uninstalling the IBM Debugger for AIX

Uninstalling on Windows

To uninstall the IBM Debugger for AIX Windows client, open the Windows Control Panel and choose Add or Remove Programs. Locate and select IBM Debugger for AIX. Click Remove to start the uninstallation process.

If uninstall fails, the following steps can be followed to manually start the uninstall program:

  1. Open a command prompt.
  2. Change directory (with the cd command) to the IBM Debugger for AIX install directory. The default installation directory is C:\Program Files\IBM\IBM Debugger for AIX.
  3. Change directory (with the cd command) to _jvm\bin.
  4. Enter the following command: java -jar ..\..\_uninst\uninstall.jar
  5. The uninstall program will start.

Uninstalling on AIX

To uninstall the IBM Debugger for AIX engine/client on AIX, issue this command when logged on as the root user:

installp -u ibmdebugger*

What's New in the IBM Debugger for AIX, Version 6.1

Starting a debug session

Before you debug a program, be sure that you have compiled the program with debug information by using the -g compiler option.

To start a debugging session, you first start the IBM Debugger client on either a local or remote AIX machine or remote Windows machine. Then you launch the debug session locally or remotely.

Starting the IBM Debugger client

To start the IBM Debugger client on Windows, go to the Windows Start menu and select Programs > IBM > IBM Debugger for AIX > IBM Debugger for AIX.

To start the IBM Debugger client on AIX, execute the idebug command. In a multiuser environment (more than one user running the user interface client on the same AIX machine), each user must select a unique daemon port number. To do this, specify a range of daemon ports in the user interface client:

  1. Start the user interface client.
  2. Click the down arrow beside the daemon icon in the Debug view.
  3. Enter a range of ports that the user interface client can attempt to use (ranges are entered, for example, as 8001-8009).
  4. The user interface client will use the first available port in the range.
  5. If the debug engine is launched from the user interface client, it will use the port that the user interface client found available.
  6. If you are launching the debug engine directly, you must specify the port that the user interface client obtained.

Launching the IBM Debugger engine

To debug a program locally, you can launch the engine from the AIX client, or from the command line. To debug a program remotely, you must launch the engine from the AIX command line.

To launch the engine from the AIX client (local debugging only):

  1. From the AIX client, select File -> New Launch -> Load a program.
  2. Provide the necessary information to locate and launch your program. At a minimum, you must specify the name of the executable. If the program cannot be found in your current PATH environment variable, include the full path to the program.

Your application will be loaded and execution will suspend at main().

To launch the engine from the command line (local or remote debugging), execute the following command:

irmtdbgc [-qhost=<hostname>:<uidaemonport>] <executable><executable parameters>

where:

The engine will then connect to the client, load your program, and suspend it when it reaches main().

Accessing IBM Debugger for AIX documentation

Complete documentation for the IBM Debugger for AIX is provided in an online information center which is launched from the IBM Debugger client.

To view the help system: From the Windows or AIX client, select Help > Help Contents.

IBM Debugger for AIX Limitations

General limitations:

Debugger engine:

Documentation Infocenter

National language limitations: