Version 1.2 - improve how we detect debug mode.