Move debug/edit mode instructions under compile