This is a simple debug engine with limited syntax checking and many cool features. Everything you need to know can be found in comments in the code ^_^
There are also quite a few useful string handling functions you can probably learn from this.
Screenshots: [1]
Download link: Debug Console.gm6