In most debuggers you can drop back up the stack to the code that called the function you are currently in, and thus debug through the function call again.
Example: https://stackoverflow.com/questions/2367816/when-using-the-j...
"Using the "Drop Frame" functionality you can "fall back" to a previous stack frame, in a sense going back in time."