In This Book

2

Invoking the Debugger

To invoke the debugger, enter the dde command in a shell process window. For detailed information on the dde command and its options, refer to the dde(1) man page.

When you invoke the debugger, it ￿rst executes a user interface startup ￿le. Then, it executes any commands speci￿ed with the -dooption. For example, the following command line speci￿es where the debugger should search for source ￿les:

$ dde -do "property sdir ~/src"

Next, the debugger executes startup command ￿les, including your personal startup ￿le if you have created one. See \Using Startup Command Files" in Chapter 6 for more information on startup ￿les.

When you invoke the debugger, the debugger's main window appears (see Figure 1-1).

Note

Starting the debugger from the command line is not supported

 

on Solaris systems. See

the softdebug (1) man page for

 

information on starting

the debugger.

 

 

 

Setting PATH and MANPATH Variables

You must have the /opt/langtools/bin directory in your PATH in order to use the dde command. If you have /usr/softbench/bin in your PATH, /opt/langtools/bin must precede it.

You must have the /opt/langtools/share/man directory in your MANPATH to access the dde(1) man page.

Stopping the Debugger

To stop and exit the debugger, c hoose File:Quit from the menu bar or enter the quit command.

If a target program is running, the debugger kills it. Ho wever, if the target program is an attached process (see \A ttaching the Debugger to a Running Process"), the debugger frees it.

Compiling, Loading, and Executing the Target Program 2-3