【问题标题】:Is it possible to use the terminal malloc_history when debugging on a iPhone device?在 iPhone 设备上调试时可以使用终端 malloc_history 吗?
【发布时间】:2011-06-26 01:28:54
【问题描述】:

我发现 malloc_history 在 iOS 模拟器上测试时很有用,是否可以为物理设备(iPhone 4)配置它。

控制台上,我确实收到了与此类似的消息

warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).

我需要在某个地方设置这个文件吗?

终端我得到了这个

malloc_history cannot examine process xxxx because the process does not exist.

将不胜感激任何直接的建议/指向文档的指针。

谢谢

【问题讨论】:

  • 运气好吗?我最近也遇到了同样的问题。
  • 在这里回答:stackoverflow.com/questions/7741985/…。看起来你不能在设备上调试时使用 malloc_history,只能使用模拟器。

标签: iphone debugging console terminal


【解决方案1】:

尝试启动 Instruments 并使用“分配”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-06
    • 1970-01-01
    • 2017-04-16
    • 1970-01-01
    • 2010-11-02
    • 2011-04-12
    • 2010-11-11
    相关资源
    最近更新 更多