简体   繁体   English

如何在Windows中调试/逐步/观看我的Node.js?

[英]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.

相关问题 如何让Firebug逐步执行内联JavaScript代码? - How can I get Firebug to step-through inline javascript code? 如何故意使我的node.js服务器崩溃? - How can I purposefully crash my node.js server? 如何使用 node.js 修改我的 HTML 文件? - How can I modify my HTML file with node.js? 如何在Node.js中的循环中为背景设置动画 - How can I animate my background in a loop in node.js 如何在Node.js中使用Redis WATCH? - How to use redis WATCH in Node.js? 运行Node.js(在Windows R2服务器上):如何减少艰苦的任务消耗的RAM数量? - Running Node.js (on Windows R2 server): How can I reduce the amount of RAM that my grunt tasks consume? 永远的node.js,如何设置永远的调试日志的限制文件大小 - node.js forever, how can I set the limit file-size of forver debug log 如何在node.js中记录每个方法调用而无需在任何地方添加调试行? - how can I log every method call in node.js without adding debug lines everywhere? 如何修复Node.js http发布请求或处理错误以更有效地进行调试? - How can I fix a Node.js http post request or handle errors to more efficiently debug? 如何使用 VS 代码调试 Node.js 中的私有 class 字段? - How can I debug private class fields in Node.js with VS Code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM