• 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: Help debugging a System Preferences pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help debugging a System Preferences pane


  • Subject: Re: Help debugging a System Preferences pane
  • From: Mike Kobb <email@hidden>
  • Date: Fri, 7 Dec 2007 13:33:12 -0800

As a brief update on my issue, putting a call to "Debugger()" in my code does cause XCode to break on that line, and from that point on I can properly set breakpoints and step through code. So, it seems to be an issue with the initial setup of the debugging session. Any help at all would really be appreciated.

Thanks,
--Mike

On Dec 6, 2007, at 5:29 PM, Mike Kobb wrote:

Hmmm. My "Active Executable" is in fact System Preferences. Is that different from what you mean by "target executable"?

Thanks!
--Mike

On Dec 6, 2007, at 5:19 PM, Dave Camp wrote:

On Dec 6, 2007, at 5:12 PM, Mike Kobb wrote:

My preference pane builds fine, and if I drop it into ~/Library/ PreferencePanes, it loads and works. I have set up an executable in XCode so that telling XCode to "run" or "debug" my pane launches System Preferences.

However, if I set some breakpoints in my code, tell XCode to "Debug" (System Preferences launches), and then exercise the controls that call that code, the breakpoints don't fire. I notice that the breakpoint indicators that I put in my source turn yellow when XCode starts launching the System Preferences application (meaning that they're pending, yes?), but they never turn blue again. If I click them twice, they go from disabled to blue, but they still won't fire when the code is exercised.

I have also tried setting the deployment location to ~/Library/ PreferencePanes, and this does result in the built pane being put in the proper place, but I have the same problem with breakpoints not working.

I'm sure this is something simple, and I'd appreciate any help!

I think you would have to set the target executable to be System Preferences itself, not your pref pane bundle, though I have not tried this since upgrading to Leopard.


Dave


_______________________________________________ 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
References: 
 >Help debugging a System Preferences pane (From: Mike Kobb <email@hidden>)
 >Re: Help debugging a System Preferences pane (From: Dave Camp <email@hidden>)
 >Re: Help debugging a System Preferences pane (From: Mike Kobb <email@hidden>)

  • Prev by Date: Re: String syntax coloring is a mess
  • Next by Date: Re: String syntax coloring is a mess
  • Previous by thread: Re: Help debugging a System Preferences pane
  • Next by thread: Creating / Editing Xcode project templates.
  • Index(es):
    • Date
    • Thread