#0199 · 方法
堆栈从根上读
读这段堆栈时请按这个顺序:
1. 找到最底层的 Caused by,那才是源头;
2. 在源头的帧里,找第一行属于我们项目的代码;
3. 打开那一行,说明当时哪个值不符合预期;
4. 再往上看是谁传进来的这个值。
[堆栈]
Read this stack trace in this order:
1. Find the deepest Caused by; that is the origin.
2. In those frames, find the first line that belongs to our project.
3. Open that line and say which value was not what we expected.
4. Then look up the stack to see who passed that value in.
[stack trace]
小杜
已贴 1,040 张上墙共收到 0 个章