I am new to OSX development, I had a question regarding running valgrind 3.6.1 on mac osx : 10.6.8
I was trying to analyze a GUI application using valgrind; However, From a console the GUI application cannot be directly launched and can be launched as: open MyApplication.app
So to check this application with valgrind, I executed, valgrind --trace-children=yes open MyApplication.app
but still I couldn't get valgrind to analyze the application. (Could get the 开发者_如何转开发logs only for the open
command) I am new to Mac OSx and may be missing something obvious, could somebody pls point out how we can analyze a UI application in valgrind on Mac? The MyApplication.app
is shown as a executable when seen from Mac's finder.
Thanks. (Posting it here since I am yet to get a response on the mailing list)
Found the solution, we can analyze the application as follows: valgrind MyApplication.app/Contents/MacOS/MyApplication
MyApplication.app is basically a folder, which contains the executable and other resources.
精彩评论