In visual studio, is there a way to step back to see what the few lines executed before were?

后端 未结 5 1028
攒了一身酷
攒了一身酷 2020-12-24 00:32

In visual studio, is there a way to step back to see what the few lines executed before were? I hit an unhandled exception in my code, and what I would like to do is step ba

5条回答
  •  囚心锁ツ
    2020-12-24 01:05

    Debug -> Windows -> Call Stack (Ctrl + Alt + C is default bindings (I think))
    

    Will show you the history of execution, you can double click events to go to definition, however you cannot step back in code

    But you can drag your little yellow arrow to another point in the code to re-execute some code, again this will not change what has already been executed

提交回复
热议问题