Chapter Contents |
Previous |
Next |
Using the Debugger in a Cross-Development Environment |
The
SAS/C Debugger's set
command provides two subcommands: set search
and set cache
. The set search
command specifies a search list that consists of one or more filename templates.
Each filename template specifies a location that is used by the debugger to
search for source, include, or debugger files that are associated with the
load module that is being debugged. The debugger traverses the search list,
looking for the file that is specified by each filename template.
The set cache
command is used in cross-development environments that support a distributed
file system, primarily to improve the debugger's performance when accessing
debugger files. The benefit is especially noticeable when debugger files are
large. This command uses a filename template that specifies the primary location
to save files and search for files. In a typical cross-debugging session,
this location would be on the mainframe.
Note:
Frequently,
file access problems are caused by an improper mount to the remote file system.
If you encounter difficulty with either the set search
or the set cache
subcommands, see
Accessing Remote File Systems.
Locating the Debugger File |
set cache
command
set search debug
command
path:
.
The debugger first checks to see if a cache location
has been specified. The set cache
command uses a filename template in order to specify a location for the debugger
file. For example, the following form of the set cache
command could be used to specify a cache location
in the CMS file system:
'SET CACHE DEBUG = "%sname dbg370"'
set search debug = "//ddn:DBGLIB(%sname)"
Note:
You can create an empty debug search list
with a set search debug
command
of the form: set search debug = ""
.
Under CMS, no default templates are defined for the
debug search list, so you can define one or more templates. The following
form of the set search
command
can be used in order to specify a new search list for the debugger file:
'SET SEARCH DEBUG = "cms: %sname db *"'
Finally, the debugger attempts to open a file with the
name that the compiler used when it created the file, together with the SAS/C filename
style prefix path:
.
Locating Source Files |
set search source
command
path:
set search source = "//ddn:DBGSRC(%sname)"
If a file is not found by using one of the templates
in the source search list, the debugger attempts to open a file with the name
that the compiler used for the file. Finally, the debugger attempts to open
a file with the name that the compiler used when it created the file, together
with the SAS/C filename style prefix path:
.
The source search list is not checked for
source files
that have been altered by a #line
preprocessor statement that specify a filename. Instead, the separate altsource
search list is used. See
FILE-TAG Values for more information on altsource
.
You can use the
following forms of the set search
command in order to specify a new
source search list:
set search source = "template1" "template2"... set search altsource = "template1" "template2"...
Locating Include Files |
set search systeminclude
command or the set search userinclude
command.
path:
.
You can use the following forms of the set search
command in order to specify a new
search list:
set search systeminclude = "template1" "template2"... set search userinclude = "template1" "template2"...
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.