What am I missing at the C ++ exception checkpoints in Xcode 4.3?

I want to be able to specify a subset of all C ++ exceptions for Xcode (lldb) to break. It seems like this is supported in the user interface:

Screen shot

But for my life I can’t make it work. If I leave it set to the default “All C ++ Exceptions”, it works and every exception thrown causes a breakpoint. If I try to specify an exception by name, the breakpoint never starts.

Has anyone else had problems with this, or is this just my problem?

+5
source share
1 answer

Despite the UI, lldb cannot set breakpoints for specific C ++ exceptions or incorrectly resolves this name.

std::underflow_error, , lldb breakpoint list, , std::underflow_error:

9: name = 'std::underflow_error', locations = 0 (pending)

, lldb std::underflow_error. ++ name mangling .

++, , __cxa_throw:

10: name = '__cxa_throw', locations = 1, resolved = 1

  10.1: where = libc++abi.dylib`__cxa_throw, address = 0x01cefa44, resolved, hit count = 0

, , .

+3

All Articles