1.打印中文輸出
1.安裝chisel:brew install chisel
2.創(chuàng)建.lldbinit文件:vim ~/.lldbinit
根據(jù)fblldb.py實(shí)際路徑填寫:
command script import /usr/local/opt/chisel/libexec/fblldb.py
3.退出Xcode并重啟绊茧,打開斷點(diǎn)揍瑟,進(jìn)入lldb調(diào)試模式峦剔,執(zhí)行以下命令:
command source ~/.lldbinit
4.打印輸出:
pjson xxxx