Created attachment 119029 [details] Attempt at creating a python3-cairo-dbg package in Debian When developing a Gtk app in Python, it's useful to be able to debug segfaults taking place in the C backend. The Python backtrace provided by gdb is pretty useless unless the debug packages are installed, for example: https://packages.debian.org/search?keywords=python3-dbg Without the debug packages, useful info like the method names are "optimized out" and are not displayed. In Debian, debugging Gtk apps with python3-dbg does not seem to be possible because there is no debug version of python3-cairo. For example, there is a debug version of python-cairo called python-cairo-dbg, but there is no python3-cairo-dbg for python3-cairo. I poked about this in oftc.net #debian-python and I was told: <p1otr> add binary package in debian/control, add python3-all-dbg to Build-Depends and if you use pybuild, that's all <p1otr> my first try was: 315465 but then I realized it's waf so I give up, life is too short for waf <p1otr> (if you want to continue: the problem is with waf using some options from dbg interpreter and some from regular one, f.e. it calls pythnon3.5-config instead of python3.5-dbg-config) See the attachment for the attempt at creating python3-cairo-dbg.
This is probably more a Debian bug than pycairo, but assigning to the pycairo project since it's definitely not a core Cairo issue. However I think pycairo may be a bit moribund presently, so you'll likely have better luck interfacing with Debian on this.
Looks like there is a python3-cairo-dbgsym in the Debian debug repos now.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.