Support debug mode