how to debug mode