GeoHydrodynamics and Environment Research

From GHER

(Difference between revisions)
Jump to: navigation, search
(Debuging in Linux/UNIX)
Line 2: Line 2:
== Debuging in Linux/UNIX ==
== Debuging in Linux/UNIX ==
 +
 +
Debuging run-time errors:
 +
* recompile your code with -g
 +
* enable cores
 +
 +
ulimit -c 10000000
 +
 +
This allows core with a maximum size of 10M.
 +
 +
* run your program
 +
* run the debugger
 +
 +
gdb <executable> core
 +
 +
inside the debugger you can use the commands such as "where", "print", "up",... See man gdb.
 +
== List of useful software ==
== List of useful software ==

Revision as of 14:59, 22 January 2008

GHER Wiki

Debuging in Linux/UNIX

Debuging run-time errors:

  • recompile your code with -g
  • enable cores
ulimit -c 10000000

This allows core with a maximum size of 10M.

  • run your program
  • run the debugger
gdb <executable> core

inside the debugger you can use the commands such as "where", "print", "up",... See man gdb.

List of useful software

Getting started

Consult the User's Guide for information on using the wiki software.


To create a new account, login as WikiSysop and click here

Personal tools