Alex Rivera | Logout

How to set breakpoint in a dependent xcode project

Asked 2009-05-29T06:13:58.927
14

i have a XCode project (my main xcode project which has its executable). It has dependencies on a few other projects (under the Project tab in Detail View, there are a few other xcode project that it depends on).

My question is how can I setup breakpoint in the code of the dependent project?

I tried this, but this does not work 1. open my main xcode project 2. double click one of the dependent xcode project 3. in the source directory, find the file I want to break and add a breakpoint (by click at the side of the border of the editor, a blue 'bookmark thing' shows up) 4. Go back to 'Build and Go', my application does run but it never breaks at the break point I set in #3.

Can someone please help me? I have spent days on this, I can't figure it why.

Thank you.

Edit
Report

1 Answer

0

I've had similar problems with Xcode. The solution for me is to make sure that there is also a breakpoint in the main project that gets hit (as Kent mentions in his third point). I don't understand why this works though.

You should also only set breakpoints in a project when you've got it open. If you don't, they can start misbehaving: still stopping the flow of execution after you've disabled or deleted them, or not working when you think they're enabled.

answered 2009-08-21T09:29:36.493

Your Answer