Adds logic for enabling debug mode for installed packages