|
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.
- In the debug target field, enter TSTPRG.
Click Next
- From the Symbolic debugger combo-box, select
TRAX
. Click Next
- In the Working directory field, enter //<server>/TXCBXL/PUB.
Click Next
- Leave the command line field empty. Click Next
- Click Yes, modify advanced settings.
Click Next
- Leave the I/O redirection check
box blank. Click Next
- In the Debugger command line field, enter:-
RUN TRAX.RUN.TXCBXL;INFO="$(DebugTarget) F". Click Next
- Leave the commands to execute field empty. Click
Next
- 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.
|