How to implement backward execution in Intellij IDEA
This article mainly introduces how Intellij IDEA implements backward execution, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Go back and execute.
The backward execution mentioned here is that sometimes when we debug code, lazy every method enters single step debugging, and when you observe a change in the value of a variable, a certain method does not follow, the result value changes, and you have to start again.
The function of backward execution can be used to retreat, just like the function of reversing chess in chess. Of course, the name of this backward operation is my own, and it is called Drop Frame in the IDE.
With this feature, we drop the current Frame, and the variable values that have changed are not restored. For example, if you pass a List to the currently calling method and add content to the List in the method, the List will not revert to its previous state when dropped to the place where the method was called.
But when the method is called again, you can watch when List is changed, at least without having to run the program again. You can even back off if you disagree.
Thank you for reading this article carefully. I hope that the article "Intellij IDEA How to Implement Backward Execution" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support you more, pay attention to the industry information channel, and more relevant knowledge is waiting for you to learn!