[Qt-creator] Stepping into Qt code on OS X? - Picture 2.png (1/1)
Eike Ziller
eike.ziller at nokia.com
Mon Feb 22 19:11:42 CET 2010
On Feb 22, 2010, at 5:15 PM, ext Stephen Chu wrote:
> I still can not step into Qt source code on OS X. Any hit? Or do I need
> to build from Qt source files? I don't have to do that with Windows
> binary download.
Ah, sorry,
the problem is: The binary distribution of Qt on the Mac doesn't come with source code at all,
so obviously you can't step into it :)
So yes, the easiest solution is to build Qt yourself. This way the binaries are automagically connected to the sources, for gdb.
Though there might be a way to tell gdb to look for the sources at a specific place
(in this way using the binaries from the binary distribution, but the sources from a source download),
but I fail to come up with the right lines, right now.
++ Eike
> In article <stephen-E24424.10450916022010 at nntp.trolltech.com>,
> Stephen Chu <stephen at ju-ju.com> wrote:
>
>> In article <127A4169-65DE-43FE-B14F-1A1B0B3D8889 at nokia.com>,
>> Eike Ziller <eike.ziller at nokia.com> wrote:
>>
>>> On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote:
>>>
>>>> In article <hlc1e1$ebe$1 at eple.troll.no>,
>>>> Stephen Chu <stephen at ju-ju.com> wrote:
>>>>
>>>>> On 2/15/2010 6:15 AM, Eike Ziller wrote:
>>>>>> Hi,
>>>>>>
>>>>>> On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote:
>>>>>>
>>>>>>> I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt
>>>>>>> source
>>>>>>> code like I can on Windows.
>>>>>>>
>>>>>>> Does the Qt libs in SDK download not include debug information? Or I
>>>>>>> just didn't configure it right?
>>>>>>
>>>>>> The Qt binary distribution contains both "debug" and "release" variants
>>>>>> of
>>>>>> the libraries.
>>>>>> But you have to explicitly tell the runtime linker that you want to use
>>>>>> the
>>>>>> debug libs - using release libs is the default, even if your
>>>>>> application
>>>>>> is
>>>>>> compiled as "debug".
>>>>>> If you use a qmake / pro-file based project in Qt Creator you can set a
>>>>>> flag in your run configuration, in Projects mode, in the run
>>>>>> configuration
>>>>>> select "Use debug version of frameworks".
>>>>>> For more detailed information about debugging on the Mac, the
>>>>>> corresponding
>>>>>> Apple documentation page is an interesting read:
>>>>>> http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html
>>>>>>
>>>>>> Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can
>>>>>> be
>>>>>> worked around like described here:
>>>>>> http://bugreports.qt.nokia.com/browse/QTBUG-4962
>>>>>>
>>>>>
>>>>> Thanks for the help. I will try that once I have access to my Mac at
>>>>> work on Tuesday.
>>>>>
>>>>> Any plan on making this automatic?
>>>>
>>>> OK. That doesn't work. The attached screenshot was taken with a project
>>>> with "Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug)" and
>>>> the latest Creator 1.3.8 snapshot.
>>>
>>> Sorry, I can't see your screenshot, it's attached as text.
>>>
>>> ++ Eike
>>
>> Sorry. Forgot I was posting via NNTP. Here's the screen capture:
>> http://farm5.static.flickr.com/4002/4362798640_95cc2e0e2f_o.png
>
> --
> Stephen Chu
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
--
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
More information about the Qt-creator-old
mailing list