Can I find out the return value before returning while debugging in Intellij?

前端 未结 4 1651
清酒与你
清酒与你 2020-12-12 15:58

With:

Object method(){
    ...
    return /* some complex expression */
}

Is there a way I can see what value will be returned while debugg

4条回答
  •  -上瘾入骨i
    2020-12-12 16:36

    There is Watch method return values button available in the debugger panel.

    Watch method return values: Click this button to watch return values of the last executed method.

    watch method return values

    IDEA 12 configuration:

    IDEA 12

提交回复
热议问题