How to debug with valgrind

From KratosWiki
Revision as of 19:57, 1 November 2008 by JMora (Talk | contribs)
Jump to: navigation, search

Using "valgrind"program help one to recognize memory errors. To debug with valgrind in command line while inside example directory execute following line

valgrind python >debugtest.out

debug process for "" is saved in "debugtest.out". various options of valgrind are accesable by this command

valgrind --help

so this could be a usefull option for complete debug

valgrind --leak-check=full python >debugtest.out

If instead of the command line, the command is written in "emacs" reading the file is much easier.

Personal tools