[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFH: Debugging symbols of pyside



On 06/30/2010 05:03 PM, Didier 'OdyX' Raboud wrote:
> Hi Bernd and Yaroslav, hi again debian-python, 
> 
> So, if I summarize:
> 
> Bernd Zeimetz wrote:
>> On 06/28/2010 04:34 PM, Yaroslav Halchenko wrote:
>>> AFAIK:
>>>
>>> - regular python build symbols files are useful for anyone willing to
>>>   troubleshoot the problem which is not too complicated and he wouldn't
>>>   need to explore the state of Python at the troublesome moment.
> 
> i) the stripped symbols from the standard build are important.
> 
>>> - _d* files for python*-dbg are extremely useful if someone needs to
>>>   triage the problem which cannot be easily comprehended by just looking
>>>   at the stack of compiled extension.  Then various tricks (Python's
>>>   ./Misc/gdbinit, or new way ./Tools/gdb/libpython.py) allow much easier
>>>   bug/problem triage in Python extensions using debug build of Python
> 
> ii) the "pythonic debug build" is important.
> 
>> also - and that is the much more important imho part for pyside - if you
>> want to run something else in the debug interpreter which uses pyside, you
>> need the _d build of pyside, too.
> 
> AFAIK, that's what I am doing:
> 
> $ dpkg -L python-pyside-dbg | grep QtCore
> /usr/lib/debug/usr/lib/pyshared/python2.6/PySide/QtCore.so
> /usr/lib/debug/usr/lib/pyshared/python2.5/PySide/QtCore.so
> /usr/lib/pyshared/python2.6/PySide/QtCore_d.so
> /usr/lib/pyshared/python2.5/PySide/QtCore_d.so

I think you misunderstood me :)

Imagine you have a file in your project which does
import cjson
from Pyside import QtCore

and you want to debug whats going on with cjson in your project  by running it
with the debug interpreter, then you need debug build of pyside, too.
I'm in favour of having debug builds for all extensions, at least if its
possible to build them easily.


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
                   ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F


Reply to: