Various improvements to the debug engine and editor