如何使用 NSLog 命令查看从调试区域中的 .SQLITE 数据库检索的数据?
每当我按下构建时,它都会给我 SIGABORT 符号并返回到代码。 我是否需要一个可用的故事板视图,或者没有它我可以在调试区域中看到输出
我使用的代码
for (PokemonAbility *theability in items) {
NSLog(@"Number: %@ Name: %@ Generation: %@ Desc: %@",theability.rowid, theability.abilityname, theability.abilitygeneration, theability.abilitydesc);
}
引用自: 代码参考
Whenever when I press build, it would give me the SIGABORT sign and goes back to the code.
Do I need a usable storyboard view or without it I could see the output in the Debug Area
The code I used was
for (PokemonAbility *theability in items) {
NSLog(@"Number: %@ Name: %@ Generation: %@ Desc: %@",theability.rowid, theability.abilityname, theability.abilitygeneration, theability.abilitydesc);
}
Referenced from:
Code Reference
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很难从你写的内容中看出,但我敢打赌你正在使用来自 SQLite 的原始数据,它是一个 C 字符串,并在 NSLog 中将其用作 NSString。尝试
等等。
Hard to tell from what you wrote, but I bet that you're using raw data from SQLite, which is a C string, and using it in NSLog as an NSString. Try
etc.