Step through a program backwards after an Exception has occurred - Visual Studio

前端 未结 4 1197
孤城傲影
孤城傲影 2021-01-11 17:43

Is there a way to step back through a program from the point where an error/Exception has occurred? Or look at the sequence in which the methods were called before the erro

4条回答
  •  情深已故
    2021-01-11 18:11

    In the Ultimate versions of Visual Studio 2010 you can use Inellitrace to go back in the execution, as Dan Puzey mentioned.

    However, in any version of Visual Studio you can still get a lot of information just from the call stack. It doesn't only show the calls that lead up to the current position, by double clicking on points in the Call Stack window you can jump to the point in the code where each method was called. The state of the stack is preserved, so you can even still see the values of local variables in the calling method.

提交回复
热议问题