creator3.6,在VScode里调试程序,为什么报错信息是js代码的?

creator3.6,在VScode里调试程序,为什么报错信息是js代码的?代码文件似乎从TS被转为了JS,所以看不到是第几行报错了,怎么办?我在另一台电脑就显示正常的TS代码错误,这台电脑重装了软件还是显示js代码的错误。。。

TypeError: Cannot read properties of undefined (reading ‘6’)
at MainBattleData.setWalkNo (http://localhost:7456/scripting/x/chunks/77/7788fba3aebdd87352456f145a2445965437ddf7.js:59:67)
at MainSceneInit.onLoad (http://localhost:7456/scripting/x/chunks/29/295c22a8a66f0a3820145bab1219341e2a00bc94.js:75:49)
at http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:158960:16
at OneOffInvoker._invoke (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:157488:9)
at OneOffInvoker.invoke (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:157603:18)
at NodeActivator.activateNode (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:159019:25)

在creator2.4里面报错信息就能定位ts代码的错误行,怎么用creator3.6反而报错信息里只有js了,无法定位错误位置了 :rofl:

一般这种情况都是打印错误的方法被重写导致的,从报错入手去溯源看看方法本体。