Debug Build of Python

Mark E. Fenner Hobbes2176 at yahoo.com
Wed Feb 21 15:49:35 EST 2007


Hi all,

Just curious how to get an "all bells and whistles" debug build of python. 
In the source for 2.4.3, I see the following debug related options:


>From README:
(1)
e.g. "make OPT=-g" will build a debugging version of Python
on most platforms
(2)
Additional debugging code to help debug memory management problems can
be enabled by using the --with-pydebug option to the configure script.


>From Misc/SpecialBuilds.txt:
This file describes some special Python build types enabled via
compile-time preprocessor defines.

Here we have a bunch of defines documented.  Where should these be be set? 
Is there a particular .h file?  Are any of them implied by the debugging
options to make and ./configure?

Regards,
Mark



More information about the Python-list mailing list