Skip to content

Debugging is *painfully* slow when using readline.on #6832

@bkbonner

Description

@bkbonner
  • VSCode Version: 1.1.1
  • OS Version: OSX 10.11.2 (15C50)
  • Using Nodejs 5.4.1 or 6.2.0

Steps to Reproduce:

`
const fs = require('fs');
const readline = require('readline');

const rl = readline.createInterface({
input: fs.createReadStream('accounts')
});

rl.on('line', (account) => {
console.log('checking account: ', account);
});
`

accounts file has a list of strings:
00133883
00281479
00287363
00289717
00290434
00290769
00297306
00297392
00332887
00371563
00513623
00513625
00513629
00514177
01012914
01023036
01027778
01029492
01086616
01117383
01117461
01117527
01117587
01125284
01152315

  1. Set a breakpoint on the console.log inside rl.on....and debugger never reaches this line.

VS Code shows the error: Request 'continue' was cancelled because Node.js is unresponsive.

  1. if you limit the file to just 3 lines, it does reach the line, but stepping through the code is painfully slow.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions