Fixed debug to only check the executed process for stack overflow.