在Xcode 4.3.1中使用libc ++时,如何获得明智的变量显示? [英] How can I get sensible variable displays when using libc++ in Xcode 4.3.1?

查看:204
本文介绍了在Xcode 4.3.1中使用libc ++时,如何获得明智的变量显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Xcode 4.3.1的C ++ 11语言方言和libc ++作为标准库。这种组合的语言支持是惊人的,但调试是折磨。 Xcode的汇总格式和lldb的汇总格式功能都不会显示任何标准类型(std :: string,std :: vector等)和漂亮的打印。为这些类型编写漂亮的打印机是非常不平凡的,由于它们的复杂性。 (例如,std :: string在libc ++中非常复杂)



在这种情况下,世界上其他开发人员是如何在STL类型中获得体面的变量显示?还是没有人使用libc ++与Xcode / lldb?

解决方案

此功能在Xcode 4.4中正常工作。 Xcode 4.3用户的最佳解决方案就是更新Xcode。


I'm using Xcode 4.3.1's C++11 language dialect along with libc++ as the standard library. The language support in this combination is amazing, but debugging is torture. Neither Xcode's "Summary Format" nor lldb's summary format features display any of the standard types (std::string, std::vector, etc.) with pretty printing. Writing a pretty printer for these types is highly non-trivial due to their complexity. (E.g., std::string is remarkably complex in libc++.)

How in the world are other developers getting decent variable displays for STL types in this situation? Or is no one else using libc++ with Xcode/lldb yet?

解决方案

This feature works correctly in Xcode 4.4. The best solution for Xcode 4.3 users is simply to update Xcode.

这篇关于在Xcode 4.3.1中使用libc ++时,如何获得明智的变量显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆