pretty print stack dump