RESOLVED FIXED 20803
JS objects in the console should be snapshots instead of live objects
https://bugs.webkit.org/show_bug.cgi?id=20803
Summary JS objects in the console should be snapshots instead of live objects
Ojan Vafai
Reported 2008-09-12 11:36:14 PDT
This matches user-expectation better and solves problems of needing to keep anonymous or otherwise unreferenced objects from being garbage collected.
Attachments
Blaze Burg
Comment 1 2014-01-26 11:44:44 PST
I don't think this should be the default. But, maybe it could be an option for some RemoteObject uses, like objects from breakpoint actions.
Radar WebKit Bug Importer
Comment 2 2014-01-26 11:44:52 PST
Timothy Hatcher
Comment 3 2014-01-26 16:28:19 PST
Works fine now. We fixed this.
Timothy Hatcher
Comment 4 2014-01-26 16:28:32 PST
Wrong bug.
Iraê
Comment 5 2015-09-01 16:35:02 PDT
I think being the default is a good idea. I constantly have to console.log(JSON.stringify(obj)) to understand better large applications with a lot of different states. When I want just a reference to the object itself I can console.log outside of the app lifecycle or assign it to window.copyOfObj = obj;
Timothy Hatcher
Comment 6 2015-09-01 16:43:51 PDT
Is this better in the nightly / Safari 9 now that we have snapshot previews?
Timothy Hatcher
Comment 7 2016-02-18 10:35:15 PST
Object previews fixed this for what most developers expect and are satisfied with in other browsers.
Note You need to log in before you can comment on or make changes to this bug.