• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't set breakpoint on specific C++ exception class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't set breakpoint on specific C++ exception class


  • Subject: Re: Can't set breakpoint on specific C++ exception class
  • From: Jim Ingham <email@hidden>
  • Date: Mon, 08 Aug 2016 11:24:36 -0700

Filtering by exception class only works for Swift at present.  That’s a known issue.  I don’t think we have a bug on the fact that the Xcode UI doesn’t reflect the current state of affairs.

Jim

> On Aug 8, 2016, at 11:04 AM, Jens Alfke <email@hidden> wrote:
>
> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Can't set breakpoint on specific C++ exception class
      • From: Jens Alfke <email@hidden>
References: 
 >Can't set breakpoint on specific C++ exception class (From: Jens Alfke <email@hidden>)

  • Prev by Date: Can't set breakpoint on specific C++ exception class
  • Next by Date: Re: Can't set breakpoint on specific C++ exception class
  • Previous by thread: Can't set breakpoint on specific C++ exception class
  • Next by thread: Re: Can't set breakpoint on specific C++ exception class
  • Index(es):
    • Date
    • Thread