• 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: not debuggable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not debuggable?


  • Subject: Re: not debuggable?
  • From: Torsten Curdt <email@hidden>
  • Date: Tue, 10 Jun 2014 14:52:31 +0200

Indeed it's a *throw* breakpoint. The queueing is good point.
In the end I was so desperate that I restarted the iPhone - that fixed it.

Scary!

But thanks for your help.

On Tue, Jun 10, 2014 at 2:26 PM, Uli Kusterer
<email@hidden> wrote:
>
> On 10 Jun 2014, at 11:47, Torsten Curdt <email@hidden> wrote:
>
>> I got this iOS project where I access the calendar - and I am
>> completely baffled.
>>
>>    [store requestAccessToEntityType:EKEntityTypeEvent
>> completion:^(BOOL granted, NSError *accessError) {
>>        if (granted) {
>>
>>            NSString *calendarIdentifier = [[NSUserDefaults
>> standardUserDefaults] valueForKey:kCalendarIdentifier];
>>
>>            EKCalendar *calendar;
>>
>>            NSLog(@"calendarIdentifier: %@", calendarIdentifier);
>>
>>            if (calendarIdentifier) {
>>                calendar = [store calendarWithIdentifier:calendarIdentifier];
>>            }
>>
>>            NSLog(@"calendar: %@", calendar);
>>
>>
>> When running on the device I only see
>>
>>  calendarIdentifier: ...
>>
>> The next line never shows!
>>
>>  calendar: ...
>>
>> I don't see how that is even possible.
>>
>> So I try the debugger. The debugger should catch all exceptions and I
>> set a breakpoint to step through. But when I step over
>> "calendarWithIdentifier:" it just continues(!) the app and also never
>> reaches the second log line!
>>
>> Whaaat!?
>>
>> Anyone a clue what could be going wrong here? ...or what else to try?
>
>  You've set a *throw* breakpoint, not a *catch* breakpoint, right? Because in this case the block is probably queued somewhere and there's nobody ever catching the exception. Have you tried wrapping the block's contents in an @try? The exception throw breakpoint *should* catch it, but maybe that helps things?
>
> Cheers,
> -- Uli Kusterer
> "The Witnesses of TeachText are everywhere..."
> http://www.zathras.de
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >not debuggable? (From: Torsten Curdt <email@hidden>)
 >Re: not debuggable? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Other app blocks mine from opening my documents
  • Next by Date: Set contents of CALayer to animated GIF?
  • Previous by thread: Re: not debuggable?
  • Next by thread: Set contents of CALayer to animated GIF?
  • Index(es):
    • Date
    • Thread