Add debug mode to deploy.sh

Change-Id: I75be685a7a3ea9315533b0d658f16b42aaebae16