Actually, I'm debugging Python code, but it's running in a
multi-threaded Python server.  So I need to attach with gdb to see
what's going on.  It would be nice if "Thread Viewer" had the ability
to decode Python stack traces.

Thanks for the info.  I'll try building using the Apple sources.

Bill


Ronald Oussoren <ronaldousso...@mac.com> wrote:

> 
> On 2 Jun, 2009, at 17:26, Bill Janssen wrote:
> 
> > Thanks, Ronald.
> >
> > It looks to me as if MacPython already includes the -g flags
> > appropriately (at least build-script.py does); could I just download
> > 2.5.4 from python.org and use that for debugging?
> 
> Not necessarily. Apple's version of python includes a number of
> patches, some of which will affect the debug symbols (such as some
> support for dtrace).
> 
> What I tend to do when I need to debug C code is to develop using the
> python.org installer which, as you mentioned, contains debugging
> symbols. The resulting C code should then work fine with the Apple
> installation of python. For really annoying bugs I have yet another
> seperate installation that was compiled using --with-pydebug, this
> tends to be the  most helpful when dealing with refcounting bugs in C
> extensions.
> 
> Ronald
> 
> >
> > Bill
> >
> >
> > Ronald Oussoren <ronaldousso...@mac.com> wrote:
> >
> >> Apple has the sources of the open-source components of OSX on their
> >> website, the python bits for 10.5.7 are here:
> >> http://www.opensource.apple.com/source/python/python-30.1.3/ .
> >>
> >> I haven't checked if this includes the configure invocation, although
> >> you could always use distutils to query the value of 'CONFIG_ARGS' .
> >>
> >> Ronald
> >>
> >> On 2 Jun, 2009, at 2:14, Bill Janssen wrote:
> >>
> >>> I'd like to be able to connect to my Python programs, mainly
> >>> long-running servers, and see what's going on in specific threads.
> >>> To
> >>> do that, I need a version of Python that's compiled with debug
> >>> symbols
> >>> in it.  What's the correct invocation to build a debug version of
> >>> Python
> >>> (2.5) which matches what ships with OS X 10.5.7?
> >>>
> >>> I don't intend to replace the system Python; I just want to match
> >>> it as closely as possible for debugging.
> >>>
> >>> Bill
> >>> _______________________________________________
> >>> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> >>> http://mail.python.org/mailman/listinfo/pythonmac-sig
> >>
> 
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to