I want to debug a simple nodejs readline programme.
var readline = require("readline");
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question("What's your name \n",function(answer){
var x =10; // set the break point here
console.log("your name is ",answer);
rl.close();
});
I set the break point at var x = 10; inside callback function of rl.question().but the break point never hits.
Why this happening I am confused.
Then how to debug a readline programme.
