iterate over the stack trace hierarchy to get full stack trace.