Chapter Contents

Previous

Next
Using the Debugger in a Cross-Development Environment

Using the SAS/C Debugger in a Cross-Development Environment

To debug a program in the cross-development environment, perform the following steps:

  1. Compile the program on the host workstation. Specify the -Kdebug option to specify generation of a debugger file.

  2. Create a load module for your program that resides on the target mainframe.

  3. Use the NFSLOGIN command in order to access the NFS server network from the mainframe. See Logging on to the NFS Network for more information.

  4. Mount the workstation's file system from your mainframe client by using one of the methods described in Accessing Remote File Systems.

  5. Invoke the debugger. Specify set search commands in the debugger PROFILE in order to specify search lists for the source, include, and debugger files.

    Note:    The debugger uses standard fopen calls in order to access these files. If you encounter difficulty when accessing files, the problem may be caused by your remote file mount and an improper match between the mount point and the templates in the debugger's search lists. For assistance in solving such a problem, enable special tracing by specifying the _SASC_NFS_VERBOSE environment variable. For more information see Installing and Administering the NFS Client  [cautionend]

If you do not use the set search command in order to specify search lists, the debugger resorts to its default search mechanism and uses the filenames that are contained in the object and debugger files in order to locate files. By default, the debugger uses the path: filename style prefix with workstation filenames. The path: prefix is described in Installing and Administering the NFS Client.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.