Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleOn this page

Table of Contents

Overview

On NCI compute systems, the following debug tool can be used:

...

gdb

GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.

More information: https://www.gnu.org/software/gdb/

Debugging without coredump files

Code Block
$ cc -g prog.c
$ gdb ./a.out
...
(gdb) list
(gdb) stop at 10
(gdb) run
(gdb) print variable
...
(gdb) quit

Debugging with coredump files

By default your jobs will not produce coredump files when they crash. To generate corefiles you need:

...