GNU Info

Info Node: (ada-mode)Debugging

(ada-mode)Debugging


Next: Using non-standard file names Prev: Compiling Executing Up: Top
Enter node , (file) or (file)node

Debugging your application
**************************

   You  can set  up in  the project  file a  command to  use to  debug
your application. Emacs is compatible with a lot of debuggers, and
provide an easy interface to them.

   This selection will focus on the  gdb debugger, and two of the
graphical interfaces that exist for it.

   In all  cases, the main  window in  Emacs will be  split in two:  in
the upper  buffer,  the  source  code  will  appear,  whereas  the
debugger input/output  window is  displayed at  the  bottom.  You  can
enter  the debugger  commands as  usual in  the command  window. Every
time  a new source file is  selected by the debugger (for instance as
a result of a `frame' command),  the appropriate source file is
displayed in the upper buffer.

   The source window is interactive: you can click on an identifier
with the right mouse button, and print its value in the debugger
window. You can also set a breakpoint simply by right-clicking on a
line.

   You  can easily use  Emacs as  the source  window when  you are
using a graphical  interface for the  debugger. The  interesting thing
is that, whereas  you still  have the  graphical nifties,  you can
also  you the cross-references  features that  Ada mode  provides to
look  at the definition for the identifiers, ....

   Here is how you  can set up gdbtk and ddd for  use with Emacs (These
are the commands you should setup in the project file):

   * gdbtk should  be used  with  the  switch `--emacs_gdbtk'.   It
     provides a  nice backtrace window, as well as a tasks window. You
     can click interactively on both of  them, and Emacs will display
     the source  file on the correct line.

   * ddd (Data Display Debugger) should be used with the switches
     `--tty' and `--fullname'. Whenever you print a variable from
     Emacs, it will be displayed graphically in the data window.



automatically generated by info2www version 1.2.2.9