Debugging skills of drop to frame in Eclipse

Select the Drop to Frame command [ ] to re-enter the selected stack frame in the Debug View.

Note this command is only available if the current VM supports drop to frame and the selected stackframe is not the top frame or a frame in a native method.

That is, this function can re-jump to the beginning of the current method and re-execute, and the values ​​of all context variables are also returned to that time. Not necessarily the current method, you can click on any frame in the current call stack to jump there (except the first frame). The main purpose is to quickly restore the state of all variables to the way they were at the beginning of the method and execute it again, that is, you can debug multiple times in the context you care about (combined with other functions such as changing variable values) over and over again without having to repeat it Where is the debugging. Of course, the side effects of the original execution process are irreversible (for example, you insert a record into the database).

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327065438&siteId=291194637