Add section on debugging.

For #490.