Use debug mode when run from file