How to debug with valgrind
From KratosWiki
(Difference between revisions)
(New page: 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 cavity2D-incomsta...) |
|||
Line 1: | Line 1: | ||
Using "valgrind"program help one to recognize memory errors. To debug with valgrind in command line while inside example directory execute following line | 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 cavity2D-incomstatic.py >debugtest.out | valgrind python cavity2D-incomstatic.py >debugtest.out | ||
+ | debug process for "cavity2D-incomstatic.py" 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 cavity2D-incomstatic.py >debugtest.out | ||
+ | If instead of the command line, the command is written in "emacs" reading the file is much easier. |
Revision as of 11:51, 18 December 2007
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 cavity2D-incomstatic.py >debugtest.out
debug process for "cavity2D-incomstatic.py" 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 cavity2D-incomstatic.py >debugtest.out
If instead of the command line, the command is written in "emacs" reading the file is much easier.