remove debugger and restore step def to previous state