Re: XCode debugging problems
Re: XCode debugging problems
- Subject: Re: XCode debugging problems
- From: Jim Ingham <email@hidden>
- Date: Thu, 4 Dec 2003 11:55:11 -0800
Have you tried debugging the App under command-line gdb? Sometimes you
will get better error messages about a problem from command-line gdb
than you will in the GUI. The only trick to this is that if you have
both an application and a framework, you need to set the environment
variable "DYLD_FRAMEWORK_PATH" to point to where your frameworks live
before running the app in gdb.
You can also get the log of Xcode<->gdb communication from doing:
1) Quit Xcode.
2) In Terminal, say:
$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
3) Restart Xcode, and do whatever you need to to make it fail.
4) Look in /tmp/<YOUR UID>/TemporaryItems/
There will be a file there called something like:
PBGDB-<Project Name>-<Xcode UID>
which contains the transcript of the gdb/Xcode communications.
That may give us some insight into what is going wrong.
Jim
On Dec 4, 2003, at 5:03 AM, Ben Guthro wrote:
Unfortunately, I cannot even pause execution of the app, as it never
even gets to that point. In PB, I would see my app load in the dock
when
debugging. It doesn't even get to that point here...it just reports
that
it has succeeded building, then nothing happens. Nor can I run it from
the IDE - It seems I can only launch it from the finder. This is not
very helpful in debugging problems.
I've tried using the latest update from developer.apple.com, but that
didn't seem to help. I've also tried turning off "Customized Data
Display," as suggested earlier in this thread. No change.
I had hoped that some error may be logged to the console that would be
helpful - no luck there either.
Now, I suppose I could continue beating my head against my monitor
trying to get xcode to work, however, I'm thinking it may just be
easier
to go back to projectbuilder. Are there any known issues that I would
have building old projectbuilder files under Panther?
Ben
On Mon, 2003-12-01 at 18:59, Nick Zitzmann wrote:
On Dec 1, 2003, at 11:17 AM, Ben Guthro wrote:
I converted the project from ProjectBuilder to XCode upon opening it
for
the first time.
After a successful build, my app will run from the finder, but not
with
the "Build & Debug" menu selection, nor "Debug". An error message is
never displayed - It just quite simply does not load.
I've had a similar problem - I've got an application that, for some
odd
reason, when run in the debugger, does not complete initialization.
When I pause execution, it appears that it's setting up a toolbar that
has a pull-down menu in it, and the process of initializing that menu,
it tries to lock an NSConditionLock deep within AppKit that for some
reason never gets unlocked. This does not happen when it's launched
from the Finder... Maybe this is the same problem you're experiencing.
I've found that sometimes stopping and restarting debugging repeatedly
when the problem occurs makes it launch eventually, as it seems to be
completely random. <8*(
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/
S/MIME signature available upon request
"That's a funny thing to promise. Well, you can't never let anything
happen to him [Nemo]; then, nothing would ever happen to him." - Dory,
from the movie "Finding Nemo"
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Ben Guthro
email@hidden
Sequel Imaging - A GretagMacbeth Company
603.425.2170
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.