You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node 5.5: util.format on object crahes debugger #4952
Following code crashes the debugger (it exits the app on "util.format" without an error message).
varutil=require("util");varobj={1: "fasdadsaas",2: "safsdafdsafsadfad"};varmessage=util.format("Format the object: %O",obj);vari=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.
P.S.: For the moment, I'm using following work around: I'm replacing the various "console.log" functions by my own. They simply tunnel/send the log statements to a chrome browser through web sockets. That's good enough for the moment and makes the log output easily readable.
Best
Thomas
Activity
MylesBorins commentedon Jan 29, 2016
@mindruptive I have a patch in that should fix this although we are just trying to get a working test for it. I'm hoping I can get this working today.
#4819
thomas-mindruptive commentedon Jan 31, 2016
Thanks a lot for the fast response.
Best
mind
thomas-mindruptive commentedon Jan 31, 2016
P.S.: For the moment, I'm using following work around: I'm replacing the various "console.log" functions by my own. They simply tunnel/send the log statements to a chrome browser through web sockets. That's good enough for the moment and makes the log output easily readable.
Best
Thomas
8 remaining items
MylesBorins commentedon Feb 5, 2016
The fix is now in master, you should expect this to see it in a release in the next 2 - 3 weeks on v4 and v5.
thomas-mindruptive commentedon Feb 7, 2016
thanks,
best mind
node_contextify: do not incept debug context
node_contextify: do not incept debug context
MylesBorins commentedon Feb 9, 2016
The fix is now released in v5.6.0. Expect LTS next week
node_contextify: do not incept debug context
node_contextify: do not incept debug context
node_contextify: do not incept debug context
node_contextify: do not incept debug context
MylesBorins commentedon Feb 17, 2016
The fix is now in lts on v4.3.1 !
node_contextify: do not incept debug context