是否可以在调试时查看iOS应用程序沙箱中的文件内容?

问题描述:

我想在Xcode中调试时检查特定执行点的XML文件内容。是否可以通过管理器查看文件的内容(我使用实际的硬件设备而不是模拟器进行调试),或者在输出/控制台中输入某种命令?

I'd like to check the contents of an XML file at a specific point of execution while debugging in Xcode. Is it possible to view the contents of the file, either through the Organizer (I'm debugging using actual hardware devices, not the simulator), or by typing in some sort of command into the output/console?

我正在使用Xcode 4.

I am using Xcode 4.

只需打开组织者并点击下载底部的按钮,然后右键单击xcappdata文件并选择Show Package Contents。

Simply open the organiser and click the 'Download' button at the bottom, then right click on the xcappdata file and select Show Package Contents.