Tcl Startup Script

The command-line debugger can automatically run a Tcl script each time you open the command-line debugger window. This script is called a startup script.

You can use both Tcl and command-line debugger commands in the startup script. For example, you might include commands that set an alias or a define color configuration in a startup script.

To create a command-line debugger startup script, follow these steps.

  1. Put the desired Tcl and command-line debugger commands in a text file.
  2. Name this file tcld.tcl.
  3. Place tcld.tcl in one of the directories listed below.
    • On a Windows® PC, put tcld.tcl in the system directory.

      For example, on Windows XP, put tcld.tcl in the WINDOWS directory.

    • On a Solaris Workstation, put tcld.tcl in your home directory.
      Note: There is no synchronization of debug events in the startup script. Consequently, put the c debug command to the startup script and place the debug commands debug, go, stop, kill, next, and step in another script so that they execute successfully.