District Attorney Larry Krasner is the city’s chief prosecutor, but he sat in the witness stand for the defense on Wednesday.