HowTo debugging

From OpenFOAMWiki
Revision as of 09:38, 26 July 2007 by Mattijs (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If your application crashes and you want to find out more but not create a complete debugging build.

- Find out from the printed stack trace which files contain the functions that crash. Copy these into your local directory.

- Add the files to your Make/files

- in Make/options: add

-DFULLDEBUG -g -O0

to EXE_INC and recompile. The 'FULLDEBUG' causes amongst others full range checking on Lists.