简体   繁体   中英

how do i use valgrind on xcode?

I was recommended to use valgrind for checking memory leaks at work. I'm currently compiling C++ on X-code. They use vi. I downloaded and installed the package from here: http://valgrind.org/downloads/repository.html

Although, now I have no idea how to use it on X-code. Thanks in advance!

Our solution was to isolate all C++ code in standalone target, and compile it for Mac (not ios). You can continue to use xCode to write and run your code. Once your target is built, you can execute any third party command line tools, like valgrind or google test framework (from a command line, of course).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM