debug: shell should capture InvalidID only, otherwise can't change layer or site;