Node.js Null Console Input (Empty Line) Debugging Problem.

I have been debugging node.js code that includes (requires) the prompt package for console input.

https://www.npmjs.com/package/prompt

I have set up defaults that are used when an empty line is read from the console.

I found that the left "use console input" button of Idea's console window had to be unset for input to be sent from the console to the program under debug, but I have been unable to send an empty line from the console to the program under debug. This inability is not a big deal because I can always enter the defaults manually, and the logic of prompt is quite simple and hard to do wrong. Yet this inability to send an empty line through the console window is quite irritating. Does anyone have any idea how to send an empty line to a node program that is being debugged with Idea?

0

Please sign in to leave a comment.