Maybe you can provide the error ?
If it's about taking out 'debug' from the file mentioned above then - no - deployment still fails at that same step with slightly different error message.