(ddd.info)Debugging DDD


Next: Customizing Diagnostics Prev: Logging Up: Diagnostics
Enter node , (file) or (file)node

B.5.2 Debugging DDD
-------------------

As long as DDD is compiled with `-g' (Note: Compiling for Debugging),
you can invoke a debugger on DDD--even DDD itself, if you wish.  From
within DDD, a special `Maintenance' menu is provided that invokes GDB
on the running DDD process.  Note: Maintenance Menu, for details.

   The DDD distribution comes with a `.gdbinit' file that is suitable
for debugging DDD.  Among others, this defines a `ddd' command that
sets up an environment for debugging DDD and a `string' command that
lets you print the contents of DDD `string' variables; just use `print
VAR' followed by `string'.

   You can cause DDD to dump core at any time by sending it a `SIGUSR1'
signal.  DDD resumes execution while you can examine the core file with
GDB.

   When debugging DDD, it can be useful to make DDD not catch fatal
errors.  This can be achieved by setting the environment variable
`DDD_NO_SIGNAL_HANDLERS' before invoking DDD.


automatically generated by info2www version 1.2.2.9