是否可以同时使用断点和仪器?如果没有,是否有一种巧妙的方法来编写一些代码,以便在特定事件发生时将标记插入到仪器时间轴中?
解决方法
Breakpoints Do Not Break. Instruments utilizes debug information from
your debug build,however,it does not stop at break points you set.
This is because while you are loading your application into
Instruments from the menu in XCode,Instruments simply uses the path
of the current executable as its start path and loads it externally
from XCode. The menu in XCode is really there as a convenience
mechanism. This is not a big deal as you can always run again in Debug
mode after your instruments session should you want your application
to break. It’s just something to make a note of.NSLog Statements Do Not Show In The Debugger Console. If you want to
see your NSLog statements,you will need to load the system Console
application (/Applications/Utilities/Console).
参考:http://www.cimgf.com/2008/04/02/cocoa-tutorial-fixing-memory-leaks-with-instruments/