Developers:Debugging

From OctopusWiki
Jump to navigation Jump to search

Here are several strategies that can be used.

Octopus-specific

Compilation

Linking

External tools

  • valgrind CPU emulator to find memory leaks (available as Ubuntu package) (http://valgrind.org). Compile with -g, then run executable in valgrind.
  • gdb GNU debugger (available as Ubuntu package) (http://sourceware.org/gdb). On supercomputers, packages such as Totalview or DDT are available for parallel debugging. Compile with -g, then run executable in debugger.

General reference

http://flylib.com/books/en/1.381.1.37/1/