8000 node 4.2.6: util.inspect() will terminate the program when there is a breakpoint · Issue #4906 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content
  • Insights
  • node 4.2.6: util.inspect() will terminate the program when there is a breakpoint  #4906

    @Corey600

    Description

    @Corey600
    var util = require('util');
    console.log(util.inspect({ff:9}));
    console.log('1');
    debugger;
    console.log('2');
    debugger;
    console.log('3');
    debugger;
    

    code is like above.

    when i execute the command : node debug demo.js
    result like this:

    E:\workspace\web\node\koa-auth>node debug demo.js
    < Debugger listening on port 5858
    debug> . ok
    break in E:\workspace\web\node\koa-auth\demo.js:1
    > 1 var util = require('util');
      2 console.log(util.inspect({ff:9}));
      3 console.log('1');
    debug> c
    < { ff: 9 }
    < 1
    program terminated
    program terminated
    program terminated
    program terminated
    program terminated
    program terminated
    program terminated
    program terminated
    program terminated
    debug> . failed, please retry
    
    E:\workspace\web\node\koa-auth>
    

    when i program without debug, it run well.
    but it can not run with debug.

    my node version is 4.2.6
    my system is windows 8.1

    please solve this problem. thx!

    Metadata

    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

        0