Adds pretty printing in debug mode.