Xcode: breakpoints in the C++ headers files seems to be ignored

I'm running in Xcode 4.3.3 an iOS project with some C++ classes.

When I run it in debug mode the breakpoints in the C++ headers files seem to be ignored. For example, the barcode on the third line of this code doesn't work:

    class myClass : public Reader {
        static const int INTEGER_MATH_SHIFT = 8;

I'm expecting the code to break on the constant assignment, or am I wrong ? Thanks


A breakpoint can only be set on executable code. The initialization of an object with static lifetime with a constant expression doesn't generate any executable code (and while you mention assignment, there's no assignment in the code you've posted). In fact, in the special case of a constant of integral type, it's likely that the object doesn't exist at all unless you take its address.

AFAIK, breakpoints can be set only on command lines not on assignments. If you set breakpoint on assignment in implementation file it will stop on next operator line

Need Your Help

Can anyone explain what features of the C runtime in Android (via NDK) are not supported?

c++ android stl java-native-interface android-ndk

More specifically, does NDK have a complete STL implementation. We're looking at this for devices running 1.6 and upwards.

moving into unique_ptr container

c++ c++11 unique-ptr

I have something I want to do that is extremely similar to the code snippet at cppreference.com for unique_ptr. The snippet is produced below. It compiles fine.