Specifications

CHAPTER 12
258
Viewing and changing the current file
The list command acts on the current file by default. To change to a different file, use the cf command. The cf
command has the following syntax:
(fdb) cf [file_name|file_number]
For example, to change the file to MyApp.mxml, use the following command:
(fdb) cf MyApp.mxml
If you do not specify a filename, the cf command lists the name and file number of the current file.
To view a list of all files used by the current application, use the
info files command. For more information, see
Getting status” on page 259.
Viewing the current working directory
Use the pwd command to view the file systems current working directory, as the following example shows. This is
the directory from which fdb was run.
(fdb) pwd
c:/Flex2SDK/bin/
Locating source files
Usually, fdb can find the source files for your application to display them with the list command. In some situa-
tions, however, you need to add a directory to the search path so that fdb can find the source files. This can be
necessary, for example, when the application was compiled on a different computer than you are using to debug
the application.
You use the
directory command to add a directory to the search path. This command adds the specified
directory or directories to the beginning of the list of directories that fdb searches for source files. The syntax for
the
directory command is as follows:
(fdb) directory path
For example:
(fdb) directory C:\MySource;C:\MyOtherSource
On Windows, use the semicolon character as a separator. On Macintosh and UNIX, use the colon character as a
separator.
To see the current list of directories in the search path, use the
show directories command.
Using truncated file and function names
The fdb debugger supports truncated file and function names. You can specify file_name and function_name
arguments with partial names, as long as the names are unambiguous.