Make more debug prints use the `debug` function.