在 IntelliJ 中:显示我们刚刚退出的方法中的 return 值

In IntelliJ: Showing the return value from the method we just stepped out of

文章 Debugging Tutorial: Java Return Value, IntelliJ Jump to Line, and More 说:

We can enable the "Show method return values" settings option in IntelliJ

这个设置在哪里?

它到底有什么作用?

这是 IntelliJ IDEA 的“服务”工具的屏幕截图window。

当您点击左侧的齿轮图标时,您可以看到“显示方法 Return 值”选项。默认情况下未选中。

它在右侧的“变量”面板中显示最后一个方法调用的 return 值(相对于调试器光标所在的位置)。