On Jan 12, 2014, at 7:16 AM, Mike Krus <[email protected]> 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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to