after hotswap back to the beginning of the method?
已回答
In Eclipse, while debugging, I can edit the code and the IDE perform the hotswap. After the hotswap, Eclipse back the thread exection to the beginning of the method. This is very useful when I changind the code during the debug session.
Can IDEA do that too?
Thanks!
请先登录再写评论。
You can use Force run to cursor: https://www.jetbrains.com/help/idea/stepping-through-the-program.html.
It seems Force run to cursor cannot back to the beginning of the method. When try to Force run to cursor, the execution is resumed.
And after the class reload, Variables debug info is not available anymore and I can't even step Step Over.
Now you need to drop frame and then step into again, please vote https://youtrack.jetbrains.com/issue/IDEA-68958 to automate that
Thank you @Egor! It was what I was looking for!