Dean Davids
Dean Davids

Reputation: 4214

NSLog no output in LLDB. Works in GDB

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?

Upvotes: 12

Views: 5681

Answers (2)

zhouhsc_cn
zhouhsc_cn

Reputation: 145

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".

Upvotes: 1

Liam George Betsworth
Liam George Betsworth

Reputation: 18513

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.

Upvotes: 10

Related Questions