I have made a round of fixes which you can see in this pull request.
https://github.com/enigma-dev/enigma-dev/pull/710One of the main ones I have added is scoping for debug mode, it uses a stack and will print a full backtrace.
So now you will know where errors occur, it does not yet however tell you the name of an uninitialized variable, but it will in the future.
You can either git pull from master or download the new Portable ZIP.
http://enigma-dev.org/docs/Wiki/Install:Windows