Document all sorts of C debugging tips

backport of cbb4bc3ffadc49c828b34ff69a3948e00cbb60e6
Conflicts:
	doc/index.rst