debugger doesn't stop on breakpoints, my userid only, not another

hello

I'm new to Xcode and am having some trouble with the debugger - I set a breakpoint, but the debugger doesn't stop on the breakpoint. I can't view variables in the debugger window, step through code, etc.

*but it seems to be something related to my userid (some preference file or something?) - if I switch to a clean guest account, the debugger works as expected. and it works fine on my other Mac.

here's what I see in the console when I build & go:

---
Session started at 2008-07-28 17:57:22 -0700.
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-960) (Sun May 18 18:38:33 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".tty /dev/ttys000
Program loaded.
sharedlibrary apply-load-rules all
run
[Switching to process 769 local thread 0x2d03]


(END)
---

note: the debugger displays "(END)" and seems to be stuck there. all I can do is end the running task (big red stopsign button)

but when I run in the guest account, the "(END)" is not displayed but instead the debugger is left running, as expected.


here is what I've tried so far:

1) completely uninstalled the developer tools using
sudo /Developer/Library/uninstall-devtools --mode=all
2) manually deleted any obvious xcode related preference files, application support files
3) reboot
4) re-install dev tools (iPhone final SDK)

actually I've tried uninstalling/reinstalling twice

problem still occurs on my userid only.

BTW, I also installed the dev tools on my other Mac, and no problem with the debugger.

the problem system is a MacBook Pro C2D 2.33GHz, OS 10.5.4, Xcode 3.1
it originally had the dev tools from the Leopard 10.5 install disk installed before installing various versions of the iPhone SDK - in case that makes any difference

my iMac is also 2.33GHz C2D, same OS X 10.5.4, Xcode 3.1 - only difference is the iPhone final SDK is the only version of the tools I ever installed on it.





can someone help getting the debugger working?
thanks

MB Pro 15.4" 2.33G C2D, iMac 24" 2.33G C2D, iMac 17" 1.25G G4, PowerMac G3 Beige, Mac OS X (10.5.1), Airport Extreme 802.11n

Posted on Jul 28, 2008 6:15 PM

Reply
5 replies

Sep 9, 2008 3:46 PM in response to Brett C

FOLLOWUP: problem solved - I discovered a single line in my .cshrc file was causing GDB to exit

I post my discovery here for future reference...

finally(!), after trying many different things without success, I came across the following post which mentions a problem with the path to /usr/bin/arch causing GDB to exit prematurely:
GDB in Leopard
http://discussions.apple.com/thread.jspa?messageID=6314862&#6314862

while not exactly same as my problem, it gave me a clue to check my own .cshrc file (thanks, Doug!)
I hadn't edited my .cshrc file in many years...

my .cshrc doesn't modify any default paths, but I discovered one line where I was setting a csh alias with a small typo, and deleting/correcting that one line allowed the Xcode debugger to function properly(!)

the problem line in question was:
alias lsm ls -alg | more
but I think the alias definition should have(?) been in quotes, like this
alias lsm "ls -alg | more"
or at least, all my other aliases with compound commands have quotes around them.

the alias definition without quotes still worked correctly in terminal, but for some strange reason it tripped up GDB. getting rid of that single line in .cshrc now allows the debugger to launch correctly - who would have known?
And of course, when running Xcode under a separate userid, this stray line doesn't exist in that userid's .cshrc file.

strange, and oddly finicky , but anyhow fixed. now, back to coding and debugging....

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

debugger doesn't stop on breakpoints, my userid only, not another

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.