When debugging using console.log(), how can I get the full object?
console.log()
const myObject = { \"a\":\"a\", \"b\":{ \"c\":\"c\", \"d\":
A simple trick would be use debug module to add DEBUG_DEPTH=null as environment variable when running the script
debug
DEBUG_DEPTH=null
Ex.
DEBUG=* DEBUG_DEPTH=null node index.js
In you code
const debug = require('debug'); debug("%O", myObject);