GeoHydrodynamics and Environment Research

From GHER

(Difference between revisions)
Jump to: navigation, search
(Debuging in Linux/UNIX)
(Debuging in Linux/UNIX)
Line 1: Line 1:
<big>GHER Wiki</big>
<big>GHER Wiki</big>
-
== Debuging in Linux/UNIX ==
+
== Debugging in Linux/UNIX ==
-
Debuging run-time errors:
+
Debugging run-time errors:
* recompile your code with -g
* recompile your code with -g
* enable cores
* enable cores

Revision as of 14:59, 22 January 2008

GHER Wiki

Debugging in Linux/UNIX

Debugging 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