[Qt-interest] setting DYLD_IMAGE_SUFFIX=_debug environment variable
John Weeks
john at wavemetrics.com
Sat Aug 28 00:36:35 CEST 2010
On Aug 27, 2010, at 12:10 AM, Kai Koehne wrote:
> I somewhat doubt it that this is possible with qmake, but you never
> know
> ... ;) Anyhow, since it's an environment variable you might be able to
> set it globally, e.g. in ~/.MacOSX/environment.plist . Haven't tried
> this myself though.
OK- re-built Qt, this time with the source *not* in /tmp so it won't
go away this time.
Putting the definition of DYLD_IMAGE_SUFFIX=_debug in .bash_profile
doesn't work, even though when gdb runs a shell it is bash.
Going to the General tab of the Executable Get Info window and
selecting "debug" from the "Use suffix when loading frameworks" menu,
I can step into Qt code.
It also works to set the DYLD_IMAGE_SUFFIX=_debug environment variable
in the Arguments tab.
I researched the .MacOSX/environment.plist and tried it without
success. But it's hard to say if I did it right- that doesn't seem to
be reflected in the environment when I run a terminal window.
And gdb under Xcode seems to build its own environment- in the gdb
terminal window, typing "shell env" gives different output than doing
the same in a regular terminal window.
So at least there's an easy-to-remember way to get what I want, using
the menu selection. It would be nice if qmake could do it so that I
don't have to remember to re-set that setting when I run qmake on
my .pro file.
Regards,
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
email support at WaveMetrics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100827/8d6c7f4f/attachment.html
More information about the Qt-interest-old
mailing list