gpt4 book ai didi

eclipse - 删除 Eclipse/JUnit 调用堆栈中断

转载 作者:行者123 更新时间:2023-12-02 22:32:25 24 4
gpt4 key购买 nike

当我在 Eclipse 中运行失败的 JUnit 时,我有时会得到类似于这样的调用堆栈:

java.lang.NullPointerException
at com.a.b.c.d.e.MyTest.method(MyTest.java:73)
at com.a.b.c.d.e.MyTest.testConvertRawInternalAtomAllowCompound(MyTest.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
.... 57 more

如何取消截止?我想查看整个调用堆栈。谢谢!

最佳答案

我希望这至少有点用。

来自 here :

The "... xx more" message usually occurs when there are nested exceptions. When that happens, the full stack trace is printed for the first exception stack trace, but for each "caused by" exception stack trace, only the portions of the stack trace that do not duplicate the first (or prior) stack trace are printed. Look at the line before "... xx more" - you should be able to go to the first stack trace and locate the same line in that stack trace - and there should be xx more lines in that first stack trace.

关于eclipse - 删除 Eclipse/JUnit 调用堆栈中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12002564/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com