Re: Xcode won't help debug anymore
Re: Xcode won't help debug anymore
- Subject: Re: Xcode won't help debug anymore
- From: Oftenwrong Soong <email@hidden>
- Date: Fri, 29 Jan 2010 15:03:47 -0800 (PST)
Hi Julian,
Let's try something simple. Maybe there is some complicated stuff going on in your project that is messing up the debugger. So open a brand new project, even something simple like a Command Line Utility and make it print Hello World to the console or have a loop like
for (int i = 0; i < 100; i++) { printf("%d", i); }
and then go in the debugger and see if you see source code, see if you can watch the value of i change, etc. If this works but not in the project you're working on, then the problem isn't in Xcode but has to do with project settings.
So first let's get the obvious out of the way and make sure you're running the Debug build configuration and not the Release build configuration. The differences between them include the generation of debugging information.
Okay now let's check some other things. Under Targets in the tree display of your project, right click on your Target and do Get Info. Look for a property named Generate Debug Symbols (or similar) and make sure this is on. Look also for a property called Debug Information Format and make sure it is something sensible such as Dwarf. If you choose with dsym file, the debug info is in a separate file. This is good for release builds (so you can post-mortem debug in the future) but it works in Debug configuration just as well.
Another thing, people have been dog-mouthing Load Symbols Lazily for centuries now. In theory, it is supposed to be very, very hard to mess up Load Symbols Lazily but supposedly there is some vague edge case where this is possible, so you can experiment with turning that off. If it doesn't help, feel free to turn it back on or leave it off, depending on which version of Xcode lore you want to believe.
I have also heard of another strange thing that can happen, related to having an Entitlements plist file for Debug mode, and if it's missing something called get-task-allow, debugging will be broken. I don't know much else about that but it's in my notes so I thought I'd include it.
Hope this helps, keep us posted,
Soong
----- Original Message ----
From: Julian Gómez <email@hidden>
To: email@hidden
Sent: Fri, January 29, 2010 1:21:38 PM
Subject: Xcode won't help debug anymore
Surely someone has an idea of what is causing this problem...
Since upgrading to Snow Leopard and Xcode 3.2.1 the debugger won't show source code. When it stops at a breakpoint all it shows is the assembly language, even though Debugger Display is set to Source Only. This is while building iPhone apps, and it happens in both the simulator and debugging the app directly.
I've already tried:
- Clean All (many times)
- trashing the prefs
- full reinstall of Xcode and iPhone SDK
What changed since 3.1.4?
_______________________________________________
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
_______________________________________________
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