Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法查看变量在内存中的位置?
在 ActionScript 中,例如在调试模式下,您可以看到变量的内存位置
我正在使用 Google Chrome 开发人员工具,我可以在调试模式下查看变量,但没有关于变量内存位置的信息。
是否有任何显示可变内存位置的浏览器工具?
拍摄内存快照。这将详细显示漂浮的物体类型、位置和数量。
(来源:google.com)
当然,它不会向您显示确切的内存或寄存器地址,但您几乎不需要它们来调试 javascript。
不,这是不可能的。由于 javascript 解释的工作方式,很难获得内存地址。