| |||
| Home > Debugging with Command Scripts > 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:
Select Tools → Logs and Journal → Log File... to display the Select File to Log to dialog box where the file can be located.
Additional menu options enable you to open journal and STDIO log files, if required.
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.
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.
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.
See also: