简体   繁体   English

WebStorm:node.js调试器与远程node.js

[英]WebStorm: node.js debugger vs remote node.js

I've encountered two debugging configurations for node.js in WebStorm: Node.JS debug and node.js Remote Debug. 我在WebStorm中遇到了针对node.js的两个调试配置:Node.JS debug和node.js Remote Debug。 You can see both of them here: 您可以在这里看到他们两个:

在此处输入图片说明

My question is what is the difference between these two? 我的问题是两者之间有什么区别? and when should we use each one of them? 我们什么时候应该使用它们中的每一个?

With Remote Debug configuration, you can attach the debugger to already running Node application started with --debug-brk . 通过远程调试配置,您可以将调试器附加到以--debug-brk开头的已运行的Node应用程序。 See https://www.jetbrains.com/help/webstorm/2016.3/running-and-debugging-node-js.html#remote_debugging , https://confluence.jetbrains.com/display/WI/Running+and+debugging+Node.js+application#RunninganddebuggingNode.jsapplication-DebuggingNode.jsappthatrunsremotely https://www.jetbrains.com/help/webstorm/2016.3/running-and-debugging-node-js.html#remote_debugginghttps://confluence.jetbrains.com/display/WI/Running+and+debugging + Node.js + application#运行并调试可远程运行的Node.jsapplication-DebuggingNode.jsapp

With Node.js run configuration, you can start the Node.js interpreter (either local or remote) and pass your application to it. 使用Node.js运行配置,您可以启动Node.js解释器(本地或远程)并将应用程序传递给它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM