#0064 · 方法
揪头发:往上多看一层
别只盯着报错的那一行。往上看一层:调用它的地方传进来什么?再往上一层:这份数据从哪来?把整条链写出来,问题就在链上的某一环。
Don't stare at the line that errors. Go up a level: what does the caller pass in? Up another: where does that data come from? Write out the whole chain; the bug is on one of its links.
小杜
已贴 1,040 张上墙共收到 0 个章