How to show full object in Chrome console? How to show full object in Chrome console? google-chrome google-chrome

How to show full object in Chrome console?


Use console.dir() to output a browse-able object you can click through instead of the .toString() version, like this:

console.dir(functor);

Prints a JavaScript representation of the specified object. If the object being logged is an HTML element, then the properties of its DOM representation are printed [1]


[1] https://developers.google.com/web/tools/chrome-devtools/debug/console/console-reference#dir


You might get better results if you try:

console.log(JSON.stringify(functor));


You might get even better results if you try:

console.log(JSON.stringify(obj, null, 4));