[Qt-interest] setting DYLD_IMAGE_SUFFIX=_debug environment variable
Kai Koehne
kai.koehne at nokia.com
Fri Aug 27 09:10:28 CEST 2010
On 8/26/2010 9:55 PM, ext John Weeks wrote:
> Today I started working with a Qt 4.6.3 build for debugging so that I
> can step into the Qt code. On Macintosh OS X, there are instructions "If
> you set DYLD_IMAGE_SUFFIX=_debug, you get the debug version." It would
> be nice if that instruction said that you should set the *environment
> variable"...
Hi,
just out of interest: which Mac version do you use? Because we're aware
of an issue in Snow Leopard that let the program crash as soon as you
use DYLD_IMAGE_SUFFIX=_debug, and have also an report that it 'doesn't
work' on latest Mac OS X Leopard.
> Anyway, once I figured out it was an environment variable and not a
> compiler macro, it worked nicely, allowing me to step into code that's
> compiled into a framework.
>
> Now my real question: is there something I can add to the .pro file that
> will generate the Xcode setting that sets that environment variable when
> I debug my application?
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.
Kai
> To set it in Xcode, I select my application in
> the Executables group in the project window and choose Get Info. In the
> Info window, select Arguments and you enter the environment variable
> definition in the Variables to be set in the environment window.
>
> Now I change my .pro file, run qmake to regenerate my Xcode project, and
> my setting is gone. I'd like that setting to be made by qmake.
>
> Regards,
> John Weeks
>
> WaveMetrics, Inc.
> Phone (503) 620-3001
> Fax (503) 620-6754
> email support at WaveMetrics.com <mailto:support at WaveMetrics.com>
>
Regards
Kai
--
Kai Koehne
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-interest-old
mailing list