I tried searching but I couldn’t find any way to ask for, or use, a debug Python build. This is useful as it runs with asserts enabled, and is very helpful for finding bugs in C extension modules.
python-dbg deb package is for system python 2 (possibly /usr/bin/python).
python3-dbg deb package is for system python 3 (possibly /usr/bin/python3).
If you want to run language: python's python with python-dbg or python-dbg3, make sure if the python is the system python installed by the deb package. I am not sure this case works.
Sadly, apt install doesn’t work because with ‘language: python’ and ‘python: 3.8’, python itself doesn’t come from apt, so installing the -dbg package from apt doesn’t work.
But pip install works to install the dbg variant of the interpreter? I’d be surprised, but I’ll look, thanks for the hint.
Have no idea what that means. But if you need Python from distro, use language: generic and install one of python*-dbg packages as @junaruga suggested. The executable will be available as python-dbg or python3-dbg (checked that with apt-file list).
Note that you can only get that for python versions provided by the distro. Travis doesn’t provide debug builds.
Sadly, apt install doesn’t work because with ‘language: python’ and ‘python: 3.8’, python itself doesn’t come from apt, so installing the -dbg package from apt doesn’t work.
That’s what I supposed. Thanks for sharing your experiment.
But pip install works to install the dbg variant of the interpreter? I’d be surprised, but I’ll look, thanks for the hint.
I see dbg in PyPI. That’s the dbg you are talking about right?