JavaScript变量内存位置 [英] JavaScript variables memory location

查看:125
本文介绍了JavaScript变量内存位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在ActionScript中,例如在调试模式下,您可以看到变量的内存位置



我正在使用Google Chrome开发人员工具,我可以在调试模式下看到变量,但没有关于变量内存位置的信息。



是否有任何浏览器工具显示可变内存位置?

解决方案

获取内存快照。这将详细显示什么样的对象漂浮在哪里,它们在哪里和多少。





当然,它不会显示精确的内存或寄存器地址,但您几乎不需要调试javascript。


Is there a way to see where the variable is located in the memory?

In ActionScript for example in debug mode you can see the memory location of the variable

I am using Google Chrome developer tools where I can see the variables in debug mode but there is no info about the memory location of the variable.

Are there any browser tools that show variable memory location?

解决方案

Take a memory snapshot. This will show in detail what kind of objects are floating around, where and how many they are.

Of course, it won't show you the exact memory or register addresses, but you hardly will need those for debugging javascript.

这篇关于JavaScript变量内存位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆