Re: Xcode won't help debug anymore
Re: Xcode won't help debug anymore
- Subject: Re: Xcode won't help debug anymore
- From: Julian Gómez <email@hidden>
- Date: Sun, 31 Jan 2010 11:26:00 -0800
Thanks for the ideas. Unfortuantely, nothing worked.
I should add a couple of points.
Nothing went wrong until I upgraded to the latest Xcode
I'm having problems with projects that didn't have problems before the upgrade
The problem is the same on both computers.
Xcode misbehaves regardless of Active SDK, and it is always in Debug mode
The debugger works otherwise. I can check values and other stuff. It just won't show me source or even where it is in the source code.
Wasn't able to find Generate Debug Symbols.
Turning off Load Symbols Lazily didn't change anything.
I think Entitlements.plist only applies to apps that are built and signed for distribution. I tried it anyway, with the setting both on and off - no difference.
Nothing in bugreporter, so I guess it's time to make one. This problem didn't exist until I upgraded, unfortunately the upgrade is required after switching to Snow Leopard.
--julian
On Jan 29, 2010, at 15:03 , Oftenwrong Soong wrote:
> 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