NSLog no output in LLDB. Works in GDB

旧街凉风 提交于 2019-12-05 16:42:12

问题


Since recent update Xcode 4.3 now seems to default to LLDB debugger. I just found that my NSLog statements are not showing in the console. After searching the for answers, finding none, I switched back to GDB and it works fine. I find others mention NSLog in LLDB so I don't' understand why it fails in my case. Should it not work the same? Is there a different method for LLDB?


回答1:


Switching from LLDB back to GDB also worked for me.

For those who are not familiar with xcode, to change the runtime debugger back to GDB:

  1. Cmd ⌘ + Option ⌥ + R to bring up the pane

  2. Change the Debugger to 'GDB'

This will have to do until the bug is fixed.




回答2:


xcode 4.3.2 lldb does not show multi-byte strings print by NSLog when debugging with real device, but works when debugging with simulator. I just switch back to gdb by selecting "edit scheme".



来源:https://stackoverflow.com/questions/9519941/nslog-no-output-in-lldb-works-in-gdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!