Skip to content

util.format(object) causes node debugger to terminate #4815

Closed
@mattoshry

Description

$ node -v
v4.2.6

$ node debug format.js 
< Debugger listening on port 5858
debug> . ok
break in format.js:1
> 1 var util = require('util');
  2 var output = util.format({ p1: 'v1' });
  3 console.log(output);
debug> n
break in format.js:2
  1 var util = require('util');
> 2 var output = util.format({ p1: 'v1' });
  3 console.log(output);
  4 
debug> n
program terminated

This is not reproducible in node@4.2.4. I can repro this in 4.2.5 and 4.2.6.
Ran into this because util.format is how log4js formats log data.

[1] https://github.com/nomiddlename/log4js-node/blob/0fc65d38eb0210bbb2d5bf12b40d3588f7c318e2/lib/layouts.js#L40

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions