Debug sub check