Re: Debugging ""Cocoa Bindings: Cannot create ... from object"
Re: Debugging ""Cocoa Bindings: Cannot create ... from object"
- Subject: Re: Debugging ""Cocoa Bindings: Cannot create ... from object"
- From: Keary Suska <email@hidden>
- Date: Wed, 13 Jun 2012 14:32:34 -0600
On Jun 13, 2012, at 7:05 AM, Fritz Anderson wrote:
> On Tue, June 12, 2012 9:28 pm, Keary Suska wrote:
>> I saw this error in my console output and eventually figured out the
> issue, but I want to be able to catch the exception. I would have never
> known it was even there if I hadn't been inspecting the console for
> other reasons. Is there a way to get Xcode to stop on the exception? At
> least I would know it was there, and have a better chance of solving it.
>
> Also, that gift of a beneficent Providence, TN2124, Mac OS X Debugging
> Magic, shows a way to better insight into bindings issues:
>
>> The NSBindingDebugLogLevel preference, introduced in Mac OS X 10.4,
> controls AppKit's response to binding problems. To receive useful logs
> about a binding problem (rather than, say, an undefined key exception),
> set this preference to 1. This is useful when trying to find a
> misconfigured binding in a large, bindings-rich application.
>
> Use the Scheme editor, for the Run action (I assume you're getting this on
> Run), and switch to the Arguments panel. Add an argument:
>
> -NSBindingDebugLogLevel 1
I already have NSBindingDebugLogLevel set as such, which is probably why the message is as informative as it is, plus I have the break on exceptions, but Xcode doesn't break on that issue. Maybe it isn't an exception? Since I have been at this for a while I have TN2124 in my quick bookmarks, but all of it's good advice doesn't really help if I can't break in the debugger...
Thanks,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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