[Development] Debugging into Qt binaries

Qi Liang Liang.Qi at digia.com
Mon Jan 13 15:07:50 CET 2014


This issue is valid since Qt 5.0.0... More details in
https://bugreports.qt-project.org/browse/QTBUG-31724

My "temporary" solution is build my qt libs with "-developer -debug -no-framework", it works fine both with creator and xcode.

Regards,
Liang

________________________________________
From: Kuba Ober
Sent: Monday, January 13, 2014 2:54 PM
To: <development at qt-project.org>
Subject: Re: [Development] Debugging into Qt binaries

On Jan 12, 2014, at 7:16 AM, Mike Krus <mike.krus at gmail.com> wrote:

> as far as I know, debug builds on OSX are not redistributable because they directly reference the location of the source files.
> So you need to do your own build and keep the source files in the same place.

Both gdb and lldb offers a way of substituting source paths, so it should be possible to substitute a path from the build box with a local path at the time of debugging. Qt Creator could do this automagically.

(gdb) set pathname-substitutions /buildbot/path /my/path
(lldb) settings set target.source-map /buildbot/path /my/path

> I’ve found Qt itself debugging on the Mac with Creator to be very slow (takes ages to start up for instance). So I only do it on occasion. I’ve defined DYLD_IMAGE_SUFFIX (as _debug) in my runtime settings and simple rename it to XDYLD_IMAGE_SUFFIX when I don’t want the Qt debugging.

I think recent Qt Creator has a simple checkbox to do it for you.

Cheers, Kuba


More information about the Development mailing list