Useful libraries

Useful tools

Debugging on Windows

A typical debug build changes the Visual C++ Runtime used and the name of DLLs it links to. We want to embed debug symbols in a release build and the key here is to never select a “debug” build anywhere in Visual Studio or Qt/PyQt’s build system.

  1. Install Visual Studio 2008 SP1
  2. Download Python 2.7.x source code
  3. Open the solution file PCBuild/pcbuild.sln
  4. Change CFLAGS to include /O2 /Zi
  5. Change LDFLAGS to include /DEBUG /INCREMENTAL:NO /OPT:ICF /OPT:REF
  6. Build only the “python” target