[TIMOB-11869] Added support for --debug to forge test. Improved module syntax error detection.