I want the debugger to stop when a specific type of C++ exception is thrown, 
not on all exceptions. (I’m using the CppUnit test framework, and I want to 
stop on assertion failures, not on internal exceptions thrown by my code.)

So I:
1. Click + in the Breakpoints navigator
2. Click “Exception Breakpoint”
3. Change “Type” to “C++”
4. Fill in “CppUnit::Exception” in the Name field
 
It doesn’t work — the debugger doesn’t stop at the exception.
(Regular “All C++ Exceptions” breakpoints, which I’ve been using, work fine.)

On the other hand, if I set a Symbolic breakpoint at 
“CppUnit::Exception::Exception”, it _does_ stop when an Exception object is 
constructed (which is actually just as good from my perspective.)

Should I file a bug report, or am I missing some subtlety of exception 
breakpoints?

—Jens

PS: Xcode 8 beta 4, with a Mac OS target
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to