how to expand size of Java stack trace to see bottom of stack? (triggering a stack overflow)

后端 未结 4 1798
傲寒
傲寒 2020-12-18 22:25

In Java, is there any way to view the complete, untruncated stack trace (e.g. by increasing the number of frames recorded), or otherwise get at the bottom of a stac

4条回答
  •  猫巷女王i
    2020-12-18 22:48

    If you have access to the call before it is entering the suspected stack overflow, you could just generate an additional stack trace like new Exception().getStackTrace. Note that foldRight itself won't produce an infinite recursion. Maybe you just run out of memory, try increasing the JVM's stack size.

提交回复
热议问题