Better debugging support.

When the editor plugin detects a debugger attaching, it will re-compile everything
so that the debugger will include the scripts modules.