setlock and quit debug