- po 打印
- 打开终端 :
echo "command regex pjson 's/(.+)/expr print(NSString(string: String(data: try! JSONSerialization.data(withJSONObject: %1, options: .prettyPrinted), encoding: .utf8)!))/'" >> ~/.lldbinit
这段bia进去然后查看你的 ~/.lldbinit文件会发现多了一行 自己命名的pjson - 回到xcode
这样看着 舒服多了
实在不行使用print 来打印也可
swift 字典 lldb 打印
于 2022-03-21 16:14:05 首次发布