Re: JS log-dumping an object and circular references problem
Dave Royal<[email protected]> Mon, 08 Feb 2021 04:56:10 -0600
| Newsgroups | gmane.comp.mozilla.general |
|---|---|
| Message-ID | <[email protected]> |
R.Wieser <[email protected]> wrote: > Hello all, > > I'm trying my hand at a XUL style addon (for FF v52), in which I have set a > "http-on-examine-response" observer. In the callback I'm now trying to > log-dump the received "request" object (the first argument). I usually examine objects using console.log("Response: "+JSON.stringify(details)) Does that not work? Or, if I discover 'details' contains an object console.log("Details: "+JSON.stringify(details[foo])) -- (Remove numerics from email address)