MacOS Valgrind alternative. Which one?
Unsolved
General and Desktop
-
Hello all!
What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:
- https://ports.macports.org/port/valgrind-macos-devel/details/
- https://ports.macports.org/port/valgrind/
Need to check applications for memory leaks.
There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?
-
@bogong Why don't you use clang's address/leak sanitizer on macOS?
with CMake it would be something like this:
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O1 -fsanitize=address -g -fno-omit-frame-pointer")