I have this simple program:
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();
Now I set a breakpoint inside the callback:
And run the program, the console
tab will open:
But everything that I enter into the terminal on this console
tab does not cause a breakpoint. This console
tab does not seem to be the terminal used to receive input from the user.
source share