Only generate debug info when in --debug mode (or asked).