title: Node.js readline in debug-console in Visual Studio Code
body: <p>I'm new to Visual Studio Code, Javascript and Node.js.</p>
  
  <p>Coming from C# I want to debug something like this with breakpoints set in Debugging-console:</p>
  
  <pre><code>var name = Console.readline();
  Console.Writeline(name);
  </code></pre>
  
  <p>It seems to be so simple, but I fail. What I found so far is, that after </p>
  
  <pre><code>npm install sget 
  </code></pre>
  
  <p>I can run app.js in integrated terminal and it will work interactively. But that ignores my breakpoints.</p>
  
  <p>So, how can I work with readline-functionality and breakpoints set?</p>
  
  <p>Thx
  -piccus  </p>
  
  <p>EDIT:
  Thank you Siam,</p>
  
  <p>I already found the Code you referenced. After putting </p>
  
  <pre><code>const readline = require('readline');
  
  const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
  });
  
  rl.question('What do you think of Node.js? ', (answer) =&gt; {
    // TODO: Log the answer in a database
    console.log(`Thank you for your valuable feedback: ${answer}`);
  
    rl.close();
  });
  </code></pre>
  
  <p>into my app.js and pressing F5, the <strong>Debug-Control-Panel</strong> prompts:</p>
  
  <pre><code>node --debug-brk=38079 --nolazy app.js 
  Debugger listening on [::]:38079
  What do you think of Node.js? 
  </code></pre>
  
  <p>Unfortunately that is the end of Debugging. Whatever I fill into the commandline below that Debug-Control-Panel, the result is always</p>
  
  <pre><code>nicht verfügbar  
  </code></pre>
  
  <p>what probably stands for 'not available'. No further breakpoint is being reached. </p>
  
  <p>Running that Code from seperate powershell will run as it should, but of Course does not care about Debugger.</p>
  
  <p>piccus</p>