RE: XCode problem: debugger doesn't stop on breakpoint
RE: XCode problem: debugger doesn't stop on breakpoint
- Subject: RE: XCode problem: debugger doesn't stop on breakpoint
- From: Brant Sears <email@hidden>
- Date: Thu, 6 Nov 2003 18:03:54 -0800
>
I dunno what I'm doing wrong but the debugger doesn't stop on some
>
breakpoints I've set.
>
I have checked both the <appname> and Target inspector and both have
>
debugging symbols on.
>
>
Any idea how I can solve this?
So far you have some good advice. However, I did find a bug in Project
Builder that causes breakpoints set through the GUI to be ignored. I do not
know if Apple has fixed the problem in xCode or not.
The scenario is to put your project file inside a path where some parent
folder has the character ":" in the name. From the Finder, that would be
"/". (When you view it as a Unix style path, you see ":".)
Why would anyone do that? My company (InFocus) standardized on a source code
control product called "Star Team" (now owned by Borland). The cross
platform (java) client that I use on the Mac requires that the local files
live in a folder called "C:". When I was looking into this issue (a while
back), I seem to recall that certain other characters could cause a similar
problem, but I don't remember what they were exactly.
You can address this issue one of two ways. One is to change the name of the
folder so that it doesn't have the : in it. (Which is what I do.) Or, you
can set your breakpoints from the GDB command line instead of using the GUI.
So, the upshot is that if you try the other advice you get and it still
doesn't work, then try setting the breakpoint via the GDB command line. For
example, if you want to set a breakpoint in a file called foo.m on line 55,
then type:
break foo.m:55
You have to be stopped to do this. You can hit pause, type it, then hit
continue. As long as you don't hit the stop sign, these breakpoints persist.
They do not persist if you hit the stop sign (i.e. disengage GDB.) If you
find that the command line breaks work and the graphical breaks don't, then
you've found a variant of this issue (and you should write up a bug on it).
Brant Sears
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.