综合技术

Stop code on STL code when debugging c ++ with Xcode 4.5

I try to debug c++ code with Xcode 4.5, compiled with llvm 4.1. The code is very simple, just inserting several items to a map.

When I step over STL functions, the execution stops inside STL code, instead of performing the step as usual.

When I compile using LLVM-GCC 4.2 the debug is just fine, but this compiler doesn’t have C++11 support.

Did anyone encounter this problem before, and knows if it can be fixed?

I can certainly experience the same issue since LLDB was introduced into Xcode. It seems it doesn’t properly handle stepping over inlined functions (see: Debugger steps deeper when trying to step out of C++11 std lib).

I’ve just submitted a bug report to Apple (ID 12588579), but I’m guessing it will take a couple of iterations before LLDB is completely ready to use in C++11 production code (it’s getting there, remember the version shipped with Xcode was not usable at all until 4.4).

展开阅读全文

微信扫一扫,分享到朋友圈

Stop code on STL code when debugging c ++ with Xcode 4.5
0

How do I add a value to a ComboBox selection in C #?

上一篇

苹果主页全屏小恐龙乱飞 庆祝多伦多猛龙夺得 NBA 冠军

下一篇

你也可能喜欢

评论已经被关闭。

插入图片
Stop code on STL code when debugging c ++ with Xcode 4.5

长按储存图像,分享给朋友