node 5.5: util.format on object crahes debugger
node 5.5, windows 8.1
Following code crashes the debugger (it exits the app on "util.format" without an error message).
var util = require("util"); var obj = { 1: "fasdadsaas", 2: "safsdafdsafsadfad" }; var message = util.format("Format the object: %O", obj); var i = 1;
Reproducible through "node debug formatBug.js", as well as node-inspector and Visual Studio Code.
For us it's quite severe because we are logging to the console extensively during development. "console.log" uses "util.format" and therefore crashes the debugger.
Thanks
mind