Symbols for Python mixed-mode debugging

What exactly do I need, and why?

Python mixed-mode debugger needs to be able to parse numerous internal data structures within Python interpreter being debugged. In order to do so consistently for all supported versions of Python, it needs debug symbols for the Python interpreter. In particular, symbols are required for:
  • The main interpreter DLL (python27.dll, python33.dll, python27_d.dll or python33_d.dll, depending on version of the interpreter, and whether it is a Py_DEBUG build of it).
  • CTypes (ctypes.pyd or ctypes_d.pyd), if you want to be able to step into functions imported via ctypes.

A symbol file for a given binary has the same name with .pdb extension. For example, a symbol file for python27.dll will be named python27.pdb.

Where to download symbols

Official distribution

If you are using the reference Python interpreter downloaded from the official Python website at, then you can download symbols from the same website. To do so, you should open the detailed release page for your Python version, and locate a link described as "Windows x86 MSI program database" (for 32-bit interpreter) or "Windows X86-64 program database" (for 64-bit interpreter). Below are direct download links for all supported versions:

All these downloads are in form of a .zip file containing the requisite .pdb files. After downloading it, unpack it to any directory, and follow the instructions below on registering them with Visual Studio.


WinPython incorporates the stock Python interpreter without changes, so you should use one of the links above for the corresponding version number (e.g. for WinPython, get symbols for Python 2.7.5).

Enthought Canopy

Enthought Canopy provides symbols for its binaries starting from version 1.2. They are automatically installed alongside with the distribution, but you will still need to manually add the directory with them to symbol path as described below. For a typical per-user installation of Canopy, the symbols are located in %UserProfile%\AppData\Local\Enthought\Canopy\User\Scripts for the 64-bit version, and %UserProfile%\AppData\Local\Enthought\Canopy32\User\Scripts for the 32-bit version.

Enthought Canopy 1.1 and earlier, as well as Enthought Python Distribution (EPD), do not provide interpreter symbols, and are therefore not compatible with mixed-mode debugging. You will need to upgrade to Canopy 1.2 to use mixed-mode debugging.

Other third-party distribution

If you're using a third-party Python distribution such as ActiveState Python, you will need to contact the authors of that distribution and request them to provide you with symbols.

Registering symbols with Visual Studio

After you have obtained the .pdb files for your interpreter, you should make Visual Studio aware of them, so that it automatically loads them whenever you start debugging. To do so, open Visual Studio, and navigate to Tools -> Options in the main menu, then to Debugging -> Symbols in the dialog that opens. You should see something like this:


Now you need to add the folder in which .pdb files reside to the location list. To do so, click on the "Add" button (first from the left in the row of buttons above the list), and then enter the folder path in the textbox that appears. Click "OK" to close the dialog.

Next time you will start debugging a Python application with mixed-mode debugger, the symbols will be located and loaded, and it will be possible to debug Python code.

Last edited Jun 10, 2014 at 12:27 AM by pminaev, version 14


pminaev Apr 16, 2015 at 5:32 PM 
The table with the links is just for your convenience. All versions of Python ship with symbols nowadays, so you can go to the detailed download page on and grab "Windows debug information files" download.

biscuitboy1980 Apr 16, 2015 at 3:48 PM 
how about 2.7.9? I need it!

pminaev Nov 5, 2014 at 7:05 AM 

(note that, generally speaking, you can just copy the link to some existing release from the same major branch, and edit the two version numbers in that link)

hm13928 Nov 5, 2014 at 5:43 AM 
Please also help update it for 3.4.2. Thanks!

pminaev Sep 18, 2014 at 3:09 PM 
The page has been updated with links to symbols for 2.7.8 - thanks!

yakupgungor Sep 18, 2014 at 7:39 AM 
i have 2.7.8 and i did´n find