To debug C/C++ Python extensions, install the debugging information for your version of the Python interpreter. This provides the necessary insight into the Python data structures for the debugger to extract Python stack and variable information.
Packaged versions of the debugging symbol interpreter can be installed with:
CentOS/RedHat Enterprise/Fedora Linux:
sudo yum install python-devel
sudo debuginfo-install glibc
sudo debuginfo-install python
Ubuntu:
sudo apt-get install python-dev
sudo apt-get install python-dbg
Python can also be built to support debugging by configuring it with the --with-pydebug flag. See Building and Using a Debug Version of Python for details on building a debug version of the interpreter.