Google Groups

Re: [Chrome DevTools] toSource equivalent


Sam Dutton Jan 9, 2012 8:55 AM
Posted in group: Google Chrome Developer Tools
Hi Peng

I'm not sure if this answers your question, but the best way to the view the details for an object in the Chrome Dev Tools is to enter its name in the console and press return!

You might also want to look at JSON.stringify().

Sam


On 9 January 2012 07:45, Peng Yu <peng...@gmail.com> wrote:
Hi,

I see that there is toSource in Firefox. I'm wondering if there is
anything equivalent in devtools that can print the source code of an
object. Thanks!

http://spacebug.com/javascript-object-to-string/

--
Regards,
Peng