title: How to debug command line input in WebStorm
body: <p>I have this simple program:</p>
  
  <pre><code>process.stdin.once("data", function (data) {
      console.log("You said your name is " + data);
      process.stdin.pause();
  });
  console.log("What is your name?");
  process.stdin.resume();
  </code></pre>
  
  <p>Now I put a breakpoint inside a callback:</p>
  
  <p><a href="https://i.stack.imgur.com/EXVFw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EXVFw.png" alt="enter image description here"></a></p>
  
  <p>And run the program, the <code>console</code> tab is open:</p>
  
  <p><a href="https://i.stack.imgur.com/VWykO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VWykO.png" alt="enter image description here"></a></p>
  
  <p>But whatever I type into the terminal in this <code>console</code> tab doesn't trigger a breakpoint. It seems that this <code>console</code> tab is not a terminal used to accept input from a user.</p>