Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link

Description

@mattoshry
Issue body actions
$ 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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    utilIssues and PRs related to the built-in util module.Issues 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.