debug compile function