Re: Xcode 4.2 Debugging problem.
Re: Xcode 4.2 Debugging problem.
- Subject: Re: Xcode 4.2 Debugging problem.
- From: Jim Ingham <email@hidden>
- Date: Mon, 24 Oct 2011 10:42:33 -0700
This sounds like it might be a problem with the debug information. You might try using Clang rather than llvm-gcc, the debug information in clang has gotten much more faithful in this release, whereas not much work is being done on llvm-gcc. If you are using clang, then we'll have to look at the particular issues you are having, it's hard to diagnose this sort of thing in general.
If you can reproduce the problem in a project you can make available to us, that is the easiest way to go. Then just file a radar, include the project, where you are setting a breakpoint, how to run the project to hit the breakpoint, and what you expect to see, and what you see instead.
If you can't make the project available but don't mind us looking at the debug version of your object files, then find the .o file containing the frame you are stopped in, and include that in the radar, along with what function you were stopped in and the line number, and which variables have unexpected values, and we can take a look at that.
Jim
On Oct 24, 2011, at 6:30 AM, rashid khan wrote:
> Debugging issues using XCODE 4.2. Installed on Lion.
>
> Using GDB: When hovering over either global or local data structures in the code, a message “out of scope - summary unavailable” appears for each item in the data structure. Xcode does correctly identify the data structure and the number of elements it contains. For variables such as integers, float etc. a correct value is displayed when the cursor is moved over the variable.
> The debug window shows only local variables and registers. No global variables are displayed regardless of the display option selected. For the local data structures the correct values are displayed when selected from the debug window.
> Switched to The LLDB debugger, when hovering over the data structures in the code, data is displayed but it is incorrect. Data displayed from the debug window is also incorrect. LLDB must be getting it from the wrong symbol file. This would point to an installation issue. I just can find it.
> The program works just fine, just cannot debug it.
> I have done the usual such as re-downloading and reinstalling Xcode several times with no luck.
> Xcode 3.2 under snow Leopard worked just fine.
> Anybody else have this problem?? Any suggestions would be appreciated.
> Thanks
> Rashid
>
>
> _______________________________________________
> 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