Pixi.js:有没有办法分析 javascript 因为它是 运行 而无需写很多 console.logs?

Pixi.js: Is there a way to analyze javascript as it's running without writing lots of console.logs?

我正在尝试分析和理解一大堆js代码,它是用pixi.js写的。有没有办法在代码触发时观察它?看到函数被触发?我尝试在 Chrome 开发人员工具中使用配置文件,但它只是告诉我有关 cookie 的信息 :D 也许我没有正确使用它。

或者有没有办法编写一个 console.log 来记录 js 函数的触发,然后我可以继续更改函数名称?

是的!它被称为调试器,可以通过 chrome 开发工具中的 'sources' 找到:https://developer.chrome.com/extensions/tut_debugging