Integrating DDD

You can run DDD as an inferior debugger in other debugger front-ends, combining their special abilities with those of DDD.

To have DDD run as an inferior debugger in other front-ends, the general idea is to set up your debugger front-end such that ddd --tty is invoked instead of the inferior debugger. When DDD is invoked using the --tty option, it enables its TTY interface, taking additional debugger commands from standard input and forwarding debugger output to standard output, just as if the inferior debugger had been invoked directly. All remaining DDD functionality stays unchanged.

In case your debugger front-end uses the GDB -fullname option to have GDB report source code positions, the --tty option is not required. DDD recognizes the -fullname option, finds that it has been invoked from a debugger front-end and automatically enables the TTY interface.

If DDD is invoked with the -fullname option, the debugger console and the source window are initially disabled, as their facilities are supposed to be provided by the integrating front-end. In case of need, you can use the View menu to re-enable these windows.

Using DDD with Emacs

To integrate DDD with Emacs, use Illegal HTML tag removed : M-x gdb or Illegal HTML tag removed : M-x dbx in Emacs to start a debugging session. At the prompt, enter ddd --tty (followed by --dbx or --gdb, if required), and the name of the program to be debugged. Proceed as usual.

Using DDD with XEmacs

To integrate DDD with XEmacs, set the variable gdb-command-name to "ddd", by inserting the following line in your ~/.emacs file:

     (setq gdb-command-name "ddd")
     

You can also evaluate this expression by pressing <ESC> <:> and entering it directly (<ESC> <ESC> for XEmacs 19.13 and earlier).

To start a DDD debugging session in XEmacs, use M-x gdb or M-x gdbsrc. Proceed as usual.

Using DDD with XXGDB

To integrate DDD with XXGDB, invoke xxgdb as

     xxgdb -db_name ddd -db_prompt '(gdb) '
     

Node:Defining Buttons, Next:Defining Commands, Previous:Integrating DDD, Up:Commands</small>

results matching ""

    No results matching ""