Insert temporary crash debugging code