(A Creative Blog Name Here)

Code, math, and other things I find useful

Debugging Python Extensions With Valgrind

In order to get line numbers when using Valgrind to debug Python extensions written in c/c++ you need to compile the extension with both the -O0 and the -g flags.

valgrind