Ok, I've modified WGE to accept remote debugger connectios. Currently, it is always waiting at start up for a connection. What I plan to do, is make it a cmd line flag. Plus, I want to make it a runtime settable thing too.. So, that from the running game, it can be attached anytime.
Anyways, i had to make a couple changes: when compiling the script buffer, the filename is now correctly used to uniquely identify the src of the script being ran, and debugging information is embedded in the script when the debugging flag is turned on. Which means, if this were to be used at runtime, in order to break execution, the script has to have debugging info turned on (I'm not sure, it may have a speed impact).. So, this may need to be turned on the whole program - perhaps only in the debug build of WGE by default.