JavaScript variable memory location

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

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

I use the Google Chrome developer tools, where I can see the variables in debug mode, but there is no information about the location of the variableโ€™s memory.

Are there any browser tools that display the location of a memory variable?

+6
source share
2 answers

Take a memory snapshot . This will show in detail which objects are moving around, where and how much they are.

Example view

Of course, it will not show you the exact memory or register addresses, but you are unlikely to need those that are designed to debug javascript.

+7
source

No, It is Immpossible. Due to how javascript interpretation works, getting a memory address is pretty difficult.

+4
source

Source: https://habr.com/ru/post/955839/


All Articles