Re: Stubborn breakpoints
Re: Stubborn breakpoints
- Subject: Re: Stubborn breakpoints
- From: "Dr. Rolf Jansen" <email@hidden>
- Date: Tue, 25 Mar 2008 19:31:43 -0300
Am 25.03.2008 um 17:34 schrieb Chris Espinosa:
On Mar 25, 2008, at 1:32 PM, David Catmull wrote:
On Mar 25, 2008, at 1:20 PM, Chris Espinosa wrote:
Are they perhaps from a different project? The Breakpoints window
will show breakpoints for other projects that your project is
loading the executable of, but you can't delete them from there.
I tried opening all the other projects that share source files with
the main project (though there is no loading-executable
relationship anywhere). The trouble breakpoints never appeared for
them. Then I went back to the main project... and they were gone!
Whatever...
There was another breakpoint that I want to keep, but it often
still breaks even when it's disabled. Manually deleting it from the
gdb command line seemed to fix it.
The question remains: where is breakpoint data stored? I did
everything I could think of to kill them, quitting and restarting
Xcode each time.
They're stored in the .pbxuser file on a per-project basis, so to
delete one you have to open the project in which it's set and delete
it there. Or you could manually edit or just delete the .pbxuser
file from the project wrapper.
I saw the same problem with Xcode 2.4, 2.4.1 and 2.5. From my
experience the problem seems to be related to the file history of a
project. In order to finally remove a stubborn breakpoint, I needed to
go through the following procedure:
1. open the file with the stubborn breakpoint in the main editor
2. clean the file history
3. delete the breakpoint in the breakpoint inspector window
4. save & close the file in the main editor window
so that the main editor window is empty
5. explicitly close the project before quitting Xcode
6. restart Xcode and open the given project
The breakpoint should have gone now. If not, then you possibly need to
repeat this procedure with the editors in the search and/or build
window. My theory is, that a deleted breakpoint becomes somehow re-
injected from the file history cache upon quitting Xcode. Anyway, for
me this problem disappeared with Xcode 3.
Best regards
Rolf
_______________________________________________
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