Only build files in debug mode. Add outputs.