15.3. Creating a log file for use as a command script

You can create a command script by logging the commands generated by RealView Debugger and those you enter to a log file. You can create a new log file, or append the commands to an existing log file.

To create a log file for use as a command script, or to append to an existing log file:

  1. Select Tools → Logs and Journal → Log File... to open the Select File to Log to dialog box where the file can be located.

    Note

    Additional menu options enable you to open journal and STDIO log files, if required.

  2. Either:

    • specify the path name of the new log file

    • locate a file created previously.

    For example, C:\home\my_user_name\my_log.log.

  3. Click Save to confirm the settings and close the dialog box.

    If the specified log file already exists, RealView Debugger displays the File Exists prompt. This gives you the option to append or replace.

  4. Click:

    • Yes to append new commands to those already saved in the file

    • No to replace, or overwrite, any commands already saved in the file

    • Cancel to close the prompt and discontinue the log file access.

Output is recorded automatically in the specified file, unless you choose to cancel logging.

RealView Debugger shows that it is recording using the status display area at the bottom of the Code window, shown in Figure 15.1.

Figure 15.1. Status line indicating an open log file

Status line indicating an open log file

See also:

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N
Non-ConfidentialID052111