内容简介:翻译自:https://stackoverflow.com/questions/20126875/how-can-one-feed-stuff-into-a-scripts-stdin-while-in-the-debugger-interface
我跑了:
node debug f.js
现在我有一个:
debug>
提示.如何在我输入到被解释为调试命令的终端之类的东西之间进行切换,并将其输入到脚本的标准输入?
在版本8中将检查器包含到节点核心后,从stdin读取的调试程序变得非常容易.
>通过:node –inspect-brk f.js运行程序
>打开Chrome.
>打开chrome:// inspect
>单击“打开专用的DevTools for Node”
这会将调试器输入分离到“远程”调试器,允许您继续从命令行向程序发送输入.
我从这个 fantastic blog by Paul Irish 中拉出了步骤
翻译自:https://stackoverflow.com/questions/20126875/how-can-one-feed-stuff-into-a-scripts-stdin-while-in-the-debugger-interface
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Real-Time Rendering, Third Edition
Tomas Akenine-Moller、Eric Haines、Naty Hoffman / A K Peters/CRC Press / 2008-7-25 / USD 102.95
Thoroughly revised, this third edition focuses on modern techniques used to generate synthetic three-dimensional images in a fraction of a second. With the advent or programmable shaders, a wide varie......一起来看看 《Real-Time Rendering, Third Edition》 这本书的介绍吧!