When using the Java debugger in Intellij what does “Drop Frame” mean?

前端 未结 3 2161
情歌与酒
情歌与酒 2020-12-07 14:12

I was using the Java debugger within Intellij 8 and noticed a button labeled \"drop frame\", does anybody know what purpose this serves? How/why would this be used/useful?<

3条回答
  •  执笔经年
    2020-12-07 14:56

    Drop Frame within the debugger pops the current stack frame and puts control back out to the calling method, resetting any local variables. This is very useful to repeatedly step through a function, but be warned: field mutations or global state changes will remain.

    See more info here.

提交回复
热议问题