[英]How can I debug/step-through/watch my Node.js in Windows?
Sorry, maybe this belongs in programmers stack exchange, but I'm trying to get in to Node.js web development, and I really need to ability to step through my code in order to gain a deeper understanding of just what is happening in all the tutorials I'm using. 抱歉,这可能属于程序员堆栈交换,但是我试图进入Node.js Web开发,我确实需要能够逐步执行我的代码,以便对所有发生的事情有更深入的了解。我正在使用的教程。
I've done some googling, but it looks like everything is written assuming you're in a *nix or OSX environment. 我已经做了一些谷歌搜索,但是看起来所有东西都是假设您在* nix或OSX环境中编写的。
I've tried node-inspector , but I'm being greeted with errors whenever I try to run process._debugProcess() with the PID. 我已经尝试过node-inspector ,但是每当我尝试使用PID运行process._debugProcess()时都会遇到错误。
JetBrains WebStorm is relatively inexpensive IDE you can use with Node.js, which is quite feature rich considering the price. JetBrains WebStorm是相对便宜的IDE,可以与Node.js一起使用,考虑到价格,该功能相当丰富。
Watch the demonstration video and you should get an idea to see if it's the kind of thing which could be helpful. 观看演示视频,您应该有一个想法,看看这是否会对您有所帮助。
http://www.jetbrains.com/webstorm/ http://www.jetbrains.com/webstorm/
Alternatively you could use Eclipse and get this up and running. 或者,您可以使用Eclipse并使其启动并运行。
https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.