IDEX-474: check debug mode