Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shortcut for "add breakpoint in project"



Daniel Jalkut wrote on Thursday, November 17, 2005:

>(Xcode 2.2)
>
>I'm impressed by Xcode's ability to often "just work" when I set a 
>breakpoint in a dependent project's source file. For instance, if I 
>have a project Tree.xcodeproj that depends on an Apple.dylib built by 
>Apple.xcodeproj, I can open Apple.xcodeproj, and set a breakpoint on 
>"MakeApple()", go back  to Tree.xcodeproj, debug, and hit the 
>breakpoint!
>
>Sometimes!
>
>It's unpredictable. I don't quite understand it. In fact, it's so 
>unpredictable that sometimes my shenanigans lead to "phantom 
>breakpoints" that are listed in some Breakpoints list but don't show up 
>graphically in any editor window.

I don't have a multi-project project to test this out at the moment, but here's something to keep in mind. When you switch between windows with multiple projects open, Xcode will often change the "active" project based on your window selection and navigation. The active project is the one that commands like Build and Find In Project will apply to. This can be counter-intuative at times.

Breakpoints are stored on a per-project basis, so look in the Windows menu before setting your breakpoint to see if you haven't inadvertently switched projects. I don't guarantee that this is your problem, but it's a variable to consider.

-- 
James Bucanek
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Shortcut for "add breakpoint in project" (From: Daniel Jalkut <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.