Moved debug setting from MObject to MCodeApplication.