-
Notifications
You must be signed in to change notification settings - Fork 64
Debugger throwing error #56
Comments
Hi @shaycraft, thank you for the comment. So, is that message an error that means that your script was aborted? |
The script does not abort and does run correctly with the --debug option, but I cannot debug which is the issue. I suppose what you are saying about TTY makes sense, wonder if there is a way around this. |
Do you mean that your debugger such as node inspector doesn't work? |
Right, in this case I'm using VS Code. It times out and says it's unresponsive, which I assume is because of the tty. |
I see. You have to emulate input via TTY if you want to run it for debugging without TTY. For example, you can use stubs and mocks via library such as Sinon.JS for unit testing. |
Cool I'll look into it. I'll close this issue then. |
😄 |
Sort of similar to issue #25. Whenever I run something with readline-sync with the --debug flag, a script that runs fine without it gives this error:
src\debug-agent.cc:149: Assertion
(err) == (0)' failed.`This is under node 6.10.1, npm 3.10.10. It does this on my home computer (Windows 10) and work as well (Windows 7): Simplest steps to reproduce:
create a file main.js containing this line:
var rl = require('readline-sync');
run with
node main.js
should be no errors.run with
node --debug main.js
and results in the above mentioned error.UPDATE: Verified too that this happens in Linux as well under node 7.7, same error.
The text was updated successfully, but these errors were encountered: