目标C:在gdb中的哪里找到<进程ID>?

| 我正在尝试使用NSZombie调试程序。调试器确实向我返回了出现问题的实例的地址,但是我不确定从何处获取运行命令\'shell malloc_history所需的pid。 在这种情况下,任何人都可以建议我使用正确的pid吗?我尝试了3298和3298:707,但它们都没有起作用。在这里感谢任何帮助。 真和
2011-05-19 16:57:05.779 CarParkDemon[3298:707] in table view cellforRow Method3
2011-05-19 16:57:05.781 CarParkDemon[3298:707] *** -[CFString retain]: message sent to deallocated instance 0x5d82930
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
(gdb) shell malloc_history 3298:707 0x5d82930
malloc_history cannot examine process 3298 because the process does not exist.
    
已邀请:
malloc_history仅在模拟器中有效。您的日志表明您正在设备上进行操作。     

要回复问题请先登录注册