In Eclipse, the debugger shows a unique session id next to each object (for Java and AS3, anyway). This makes it simple to identify the same object appearing in multiple contexts.
I'm working on a JavaScript project, and would like the same ability to identify objects in the Chrome debugger (e.g. in the "Scope Variables" pane). Is this information tracked by the browser/debugger? Is there a different way to identify an object across contexts, without adding code (a purely IDE way of doing this, applicable to any context).
The Chrome Web Inspector and Debugger are conveniently built-in with Chrome. You can launch it by hitting F12 while in your browser or by right clicking on a web page and selecting the Inspect menu item.
Technically this is possible. You probably already can see it, if you use Chrome Dev Tools for Java (Eclipse-based debugger). http://code.google.com/p/chromedevtools
As to in-browser debugger, UI merely lacks UI for this. I guess you should file a feature request on this at: http://crbug.com
P.S. Note, that this not an address at all – both Java and JavaScript move their objects in memory at random moments.
I believe this is possible using Chrome Dev Tools by:
JavaScript does not have memory addresses. "The same variable" can be compared using the triple equal sign notation (anObjectReference === anotherObjectReference
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With