The murder trial of a school shooter’s father has featured witnesses who have offered key testimony about the “what-if” moments in which police nearly stopped the attack before it started.