debug mode detection (file dev