Is it possible to view the contents of files in the iOS Application sandbox while debugging?

前端 未结 5 1252
忘掉有多难
忘掉有多难 2021-01-30 10:13

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 Org

5条回答
  •  逝去的感伤
    2021-01-30 10:52

    You can always set a breakpoint and then, in the console, print the contents of the object you want to examine using 'po'. Example: gdb> po [NSDictionary dictionaryWithContentsOfFile: filePath];.

提交回复
热议问题