如何让 LLDB 输出图像?

How do I get LLDB to output images?

我有一个 8 位通道缓冲区,我想在调试会话中查看其内容。使用 Xcode/LLDB 下可能可用的任何东西,可以做到吗?使用单独 window(甚至转储到外部文件)的解决方案很好。

如果图像是 8 位平面 RGBA,答案会有什么变化?

我想你问的是:

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/CustomClassDisplay_in_QuickLook/Introduction/Introduction.html

已在此处回答:

How can I Quick Look custom objects with Xcode 5 visual debugger?

您必须能够将图像转换为 UIImage 或 QuickLook 系统本机理解的其他类型。