本文介绍了NSLog在LLDB中没有输出。在GDB中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从最近更新Xcode 4.3现在似乎默认为LLDB调试器。我刚刚发现我的NSLog语句没有显示在控制台中。搜索找到答案后,发现没有,我切换回GDB,它工作正常。
我发现别人在LLDB中提到NSLog,所以我不明白为什么它在我的情况下失败。它应该不工作一样吗?对LLDB有不同的方法吗?

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?

推荐答案

从LLDB回到GDB也为我工作。 >

Switching from LLDB back to GDB also worked for me.

对于那些不熟悉xcode的人,将运行时调试器改回GDB:

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


  1. Cmd⌘+ Option⌥+ R调出窗格

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

将调试器更改为GDB

Change the Debugger to 'GDB'

这必须在修复错误之前完成。

This will have to do until the bug is fixed.

这篇关于NSLog在LLDB中没有输出。在GDB中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 15:53