- Installation
$ sudo apt install valgrind
- Usage
$ g++ -g main.cpp -o main # to include debugging information with flag '-g'
$ valgrind --leak-check=yes ./main
Reference
标签:debugging,valgrind,C++,start,quick,main,检测工具
来源: https://www.cnblogs.com/hotfengz/p/16375344.html