GNU Info

Info Node: (idlwave)Debugging IDL Programs

(idlwave)Debugging IDL Programs


Prev: Using the Shell Up: The IDLWAVE Shell
Enter node , (file) or (file)node

Debugging IDL Programs
======================

   Programs can be compiled, run, and debugged directly from the source
buffer in Emacs.  The IDLWAVE shell installs key bindings both in the
shell buffer and in all IDL code buffers of the current Emacs session.
On Emacs versions which support this, it also installs a debugging
toolbar.  The display of the toolbar can be toggled with `C-c C-d C-t'
(`idlwave-shell-toggle-toolbar').

   The debugging key bindings are by default on the prefix key `C-c
C-d', so for example setting a breakpoint is done with `C-c C-d C-b',
compiling a source file with `C-c C-d C-c'.  If you find this too much
work you can choose a combination of modifier keys which is not used by
other commands.  For example, if you write in `.emacs'

     (setq idlwave-shell-debug-modifiers '(control shift))

   a breakpoint can be set by pressing `b' while holding down `shift'
and `control' keys, i.e. `C-S-b'.  Compiling a source file will be on
`C-S-c', deleting a breakpoint `C-S-d' etc.  In the remainder of this
chapter we will assume that the `C-c C-d' bindings are active, but each
of these bindings will have an equivalent single-keypress shortcut with
the modifiers given in the `idlwave-shell-debug-modifiers' variable.

 - User Option: idlwave-shell-prefix-key (`C-c C-d')
     The prefix key for the debugging map
     `idlwave-shell-mode-prefix-map'.

 - User Option: idlwave-shell-activate-prefix-keybindings (`t')
     Non-`nil' means, debug commands will be bound to the prefix key,
     like `C-c C-d C-b'.

 - User Option: idlwave-shell-debug-modifiers (`nil')
     List of modifier keys to use for binding debugging commands in the
     shell and in source buffers.

 - User Option: idlwave-shell-use-toolbar (`t')
     Non-`nil' means, use the debugging toolbar in all IDL related
     buffers.

Compiling Programs
Compiling buffers under the shell
Breakpoints and Stepping
Deciding where to stop and look
Examining Variables
What is the value now?

automatically generated by info2www version 1.2.2.9