make debug mode not code dependant