support > Using CCS/TRAX

Debugging using CCS/TRAX COBOL

This technical note will take you through the process of setting up Programmer Studio to debug a COBOL program using the TRAX COBOL debugger. For the purposes of illustrating the interface between TRAX and Programmer Studio the examples used here are based on the Introductory Tutorial installed with TRAX.

Start by creating a new server profile to connect to the HP3000 using the manager user and login to the TRAX COBOL installation account (TXCBXL). When prompted by the server profile wizard, you will also need to setup a TELNET session to control the debugger.

Create a new project, add the two files located in the LST.TXCBXL group named HTLST and LURQ specifying COBOL source file as the File Type.

From the Debug menu, select Active Targets, then New. The Debug Target Wizard will now appear with an introductory note. Click next to proceed with the wizard and then follow the steps below for each stage of the wizard.

  1. In the debug target field, enter TSTPRG. Click Next
  2. From the Symbolic debugger combo-box, select TRAX…. Click Next
  3. In the Working directory field, enter //<server>/TXCBXL/PUB. Click Next
  4. Leave the command line field empty. Click Next
  5. Click Yes, modify advanced settings. Click Next
  6. Leave the I/O redirection check box blank. Click Next
  7. In the Debugger command line field, enter:-
    RUN TRAX.RUN.TXCBXL;INFO="$(DebugTarget) F". Click Next
  8. Leave the commands to execute field empty. Click Next
  9. Enter a name for the debug target, for example TSTPRG. Click Finish to save the settings

You should be able to debug the sample program from within Programmer Studio. Remember, Programmer Studio is only remotely controlling TRAX, so you can select the debug session tab in the output window at any time to enter your own commands.

 
Copyright ©2008 Whisper Technology Limited. All rights reserved.