debug info optimization and console output