Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker 诊断工具


IDEA Debug 查看方法返回值

IDEA Debug 大约 346 字

示例

Math.random();这行打上一个断点,查看其返回的具体值。

public class DebugMethodReturnValue {

    public static void main(String[] args) {
        Math.random();
        System.out.println("123");
    }

}

打开设置

Debug面板的侧边栏中的Settings中,勾选Show Method Return Values即可。

图示

showmethodreturnvalues.png

视频讲解

https://www.bilibili.com/video/BV1Ca411R7rZ

https://www.ixigua.com/i7132478450400821793

阅读 3156 · 发布于 2021-09-16

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批