Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, December 2007
Re: [Mac] Not seeing Qt source in Leopard debugger...


Message 1 in thread

Dave,

I can't thank you enough for finding this! I tried to debug into Qt  
just this morning and it didn't work. Now I'm rebuilding 4.3.3 with - 
dwarf2, but in about two hours I'm going to owe you a beer.

Cheers,
Rob

On Oct 31, 2007, at 6:06 PM, Dave Thorup wrote:

> Well, to answer my own question it looks like these are the steps  
> you need to take to see Qt source in the Xcode 3 debugger under  
> Leopard:
>
> 1) Build the Qt libraries with the "-dwarf2" option ( ./configure - 
> dwarf2 ... ) as DWARF is the default format in Leopard (vs. Stabs  
> previously).
> 2) In your Xcode project, double-click on your executable in the  
> Executables section of the Xcode project and select "Use <debug>  
> suffix when loading frameworks." Where <debug> is selected from a  
> popup menu.
>
> Neither of these steps were required in Tiger.  #1 wasn't necessary  
> because the default symbol format in Xcode was the same as that used  
> when building Qt.  I'm not sure why you need to do #2 now though.
>
> Hopefully this is helpful to someone in the future.
> --
> Dave Thorup
> Software Engineer
> http://bibblelabs.com
>
>
> On Oct 30, 2007, at 2:13 PM, Dave Thorup wrote:
>
>> I'm trying to track down some problems that our current project is  
>> having on Mac OS X 10.5 but I'm not seeing any Qt source code when  
>> using the Xcode 3 debugger.  The Qt library is a recent 4.4  
>> snapshot from 10/29 and was configured with "-debug".  I haven't  
>> ever had this problem in Tiger when using Qt debug libraries so I'm  
>> double-checking the 10/29 snapshot to make sure it's not something  
>> to do with that (highly unlikely).
>>
>> Has anyone else had problems getting Qt source to display in the  
>> Xcode 3 debugger?  Any suggestions?
>>
>> Thanks!