title: Unable to read from console in node js using VS code
body: <p>I am playing with the core modules of node js in VS code and i m unable to get it working with "readline" module.</p>
  
  <p>I have the following code in js file.</p>
  
  <pre><code>const readline = require('readline');
  
  const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
  });
  
  rl.question('Is it working ?', function (answer) {
      console.log(answer);
  });   
  </code></pre>
  
  <p>when i run it this is what i see in debug console </p>
  
  <pre><code>node --debug-brk=4868 --nolazy Core.js 
  Debugger listening on port 4868
  Is it working ?
  No
  not available
  </code></pre>
  
  <p>I am not sure what;s the issue here but it fails to log the answer to the console.</p>