Debugger Shell

CodeWarrior supports a command-line interface to some of its features including the debugger. You can use the command-line interface together with TCL scripting engine. You can even issue a command that saves the command-line activity to a log file.

The Debugger Shell view is used to issue command lines to the IDE. For example, you enter the command debug in this window to start a debugging session. The window lists the standard output and standard error streams of command-line activity.

Figure 1. Debugger Shell view

Debugger Shell View

To open the Debugger Shell view, perform these steps.

  1. Switch the IDE to the Debug perspective and start a debugging session.
  2. Choose Window > Show View > Debugger Shell.

    The Debugger Shell view appears ( Figure 1).

    Note: Alternatively, choose Window > Show View > Other. Expand the Debug tree control in the Show View dialog, choose Debugger Shell, and click OK.
    Figure 2. Show View - Debugger Shell

    Show View - Debugger Shell

To issue a command-line command, type the desired command at the command prompt (%>) in the Debugger Shell view, then press the Enter key. The command-line debugger executes the specified command.

If you work with hardware as part of your project, you can use the command-line debugger to issue commands to the debugger while the hardware is running.

Note: To list the commands the command-line debugger supports, type help at the command prompt and press Enter. The help command lists each supported command along with a brief description of each command.
Tip: To view page-wise listing of the debugger shell commands, right-click in the Debugger Shell view and choose Paging from the shortcut menu. Alternatively, click the Enable Paging icon.