Setup various debug options.