Favorite Valgrind Options

neversaint picture neversaint · Mar 13, 2009 · Viewed 8.6k times · Source

I usually use this:

valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode

But not sure if on one hand it checks everything, on the other hand too verbose. What's your favorite option?

Answer

alex strange picture alex strange · Apr 9, 2009

SVN valgrind has --track-origins=yes, which actually makes uninitialized value warnings useful.