TEXTM-150 : implemented debug mode